summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/build_gles2_cmd_buffer.py
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 00:49:13 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 00:49:13 +0000
commita0c3e97d31ec8cad60f4ae355c36032a58cb8f64 (patch)
tree628d4c2ff01edd2b125a307513c39b95a50a43da /gpu/command_buffer/build_gles2_cmd_buffer.py
parent15406b6ab2f2c701d6e82c8e53c22d1c570c739a (diff)
downloadchromium_src-a0c3e97d31ec8cad60f4ae355c36032a58cb8f64.zip
chromium_src-a0c3e97d31ec8cad60f4ae355c36032a58cb8f64.tar.gz
chromium_src-a0c3e97d31ec8cad60f4ae355c36032a58cb8f64.tar.bz2
Some GL drivers incorrectly return "gl_DepthRange.far" as
a uniform when querying the uniforms. This CL checks for that condition and hides that from the client programs. TEST=unit tests BUG=none Review URL: http://codereview.chromium.org/1700002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-xgpu/command_buffer/build_gles2_cmd_buffer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index 7b9c86e..b2782cb 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -1120,7 +1120,11 @@ _FUNCTION_INFO = {
'result': ['GLuint'],
'unit_test': False,
},
- 'GetProgramiv': {'type': 'GETn', 'result': ['SizedResult<GLint>']},
+ 'GetProgramiv': {
+ 'type': 'GETn',
+ 'decoder_func': 'DoGetProgramiv',
+ 'result': ['SizedResult<GLint>'],
+ },
'GetProgramInfoLog': {
'type': 'STRn',
'get_len_func': 'glGetProgramiv',