From 03da50800f01bdaf3da78f74d03af7000a094adb Mon Sep 17 00:00:00 2001 From: Yochai Shefi Simchon Date: Sun, 12 Jun 2011 16:44:38 +0300 Subject: [PATCH] glDrawTex- GL_INVALID_VALUE if width/height <= 0 --- .../emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp index 50fff9925..27c9c8cc1 100644 --- a/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp +++ b/tools/emulator/opengl/host/libs/Translator/GLES_CM/GLEScmImp.cpp @@ -1833,6 +1833,9 @@ GL_API void GL_APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *p template void glDrawTexOES (T x, T y, T z, T width, T height) { GET_CTX() + + SET_ERROR_IF((width<=0 || height<=0),GL_INVALID_VALUE); + int numClipPlanes; GLint viewport[4];