TINYGL: Fixed support to RGB textures.
This commit is contained in:
parent
64b0baa7a1
commit
d0579291bd
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ void glopTexImage2D(GLContext *c, GLParam *p) {
|
|||
pixels = temp.getRawBuffer();
|
||||
do_free_after_rgb2rgba = true;
|
||||
}
|
||||
} else if (format != TGL_RGBA || type != TGL_UNSIGNED_BYTE) {
|
||||
} else if (!(format == TGL_RGBA || format == TGL_RGB || format == TGL_BGR) || type != TGL_UNSIGNED_BYTE) {
|
||||
error("tglTexImage2D: combination of parameters not handled");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue