glDrawTex- GL_INVALID_VALUE if width/height <= 0
This commit is contained in:
committed by
Guy Zadickario
parent
772de2edde
commit
03da50800f
@@ -1833,6 +1833,9 @@ GL_API void GL_APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *p
|
|||||||
template <class T, GLenum TypeName>
|
template <class T, GLenum TypeName>
|
||||||
void glDrawTexOES (T x, T y, T z, T width, T height) {
|
void glDrawTexOES (T x, T y, T z, T width, T height) {
|
||||||
GET_CTX()
|
GET_CTX()
|
||||||
|
|
||||||
|
SET_ERROR_IF((width<=0 || height<=0),GL_INVALID_VALUE);
|
||||||
|
|
||||||
int numClipPlanes;
|
int numClipPlanes;
|
||||||
|
|
||||||
GLint viewport[4];
|
GLint viewport[4];
|
||||||
|
|||||||
Reference in New Issue
Block a user