gl-util.h: GL_RGBA8 is not a legal internalformat under GLES2
GL_RGBA ought to be synonymous.
This commit is contained in:
parent
6f17b6ff46
commit
c44f4d7d28
|
@ -74,7 +74,7 @@ namespace TEX
|
||||||
|
|
||||||
inline void uploadImage(GLsizei width, GLsizei height, const void *data, GLenum format)
|
inline void uploadImage(GLsizei width, GLsizei height, const void *data, GLenum format)
|
||||||
{
|
{
|
||||||
gl.TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, format, GL_UNSIGNED_BYTE, data);
|
gl.TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, format, GL_UNSIGNED_BYTE, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void uploadSubImage(GLint x, GLint y, GLsizei width, GLsizei height, const void *data, GLenum format)
|
inline void uploadSubImage(GLint x, GLint y, GLsizei width, GLsizei height, const void *data, GLenum format)
|
||||||
|
@ -84,7 +84,7 @@ namespace TEX
|
||||||
|
|
||||||
inline void allocEmpty(GLsizei width, GLsizei height)
|
inline void allocEmpty(GLsizei width, GLsizei height)
|
||||||
{
|
{
|
||||||
gl.TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);
|
gl.TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void setRepeat(bool mode)
|
inline void setRepeat(bool mode)
|
||||||
|
|
Loading…
Reference in New Issue