From ca5e9825a4a0a4680653793bd2f9ae75f1dc62ac Mon Sep 17 00:00:00 2001 From: Liran Date: Thu, 28 Jul 2011 07:23:49 +0300 Subject: [PATCH] opengles emulator: fix glGetShaderSource added NullAllowed flag to length parameter of glGetShaderSource calling glGetShaderSource with NULL length caused length data from the host get left on the stream and get the stream out of sync Change-Id: I45e8e523a67698c9b0cd003e2af7e15c76ed22b7 --- tools/emulator/opengl/system/GLESv2_enc/gl2.attrib | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/emulator/opengl/system/GLESv2_enc/gl2.attrib b/tools/emulator/opengl/system/GLESv2_enc/gl2.attrib index bf266dfc1..e764c10de 100644 --- a/tools/emulator/opengl/system/GLESv2_enc/gl2.attrib +++ b/tools/emulator/opengl/system/GLESv2_enc/gl2.attrib @@ -175,6 +175,7 @@ glGetShaderPrecisionFormat glGetShaderSource dir length out len length (sizeof(GLsizei)) + var_flag length nullAllowed dir source out len source bufsize