mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
TINYGL: Do not check the same conditions twice
This commit is contained in:
parent
7331ccf4da
commit
edce904439
@ -149,8 +149,7 @@ void glopTexImage2D(GLContext *c, GLParam *p) {
|
||||
pixels = temp.getRawBuffer();
|
||||
do_free_after_rgb2rgba = true;
|
||||
}
|
||||
} else if (!(target == TGL_TEXTURE_2D && level == 0 && components == 3 && border == 0
|
||||
&& format == TGL_RGBA && type == TGL_UNSIGNED_BYTE)) {
|
||||
} else if (format != TGL_RGBA || type != TGL_UNSIGNED_BYTE) {
|
||||
error("glTexImage2D: combination of parameters not handled");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user