summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-24 13:56:01 -0600
committerBrian Paul <[email protected]>2009-08-24 13:56:01 -0600
commitbf7e4b10cbed496a12c8be17531c9cb7da1be177 (patch)
tree02a67ed42e1fc320aba75c6b88fe8f3152991872 /src/mesa/vbo
parent96f7b422426f8f13f4cedbe280e5dede6b358f2a (diff)
ARB prog: Set error instead of falling through with incorrect value
If a fragment program only parameter was queried of a vertex program (e.g., GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB) no error would be set and a random value would be returned. This caused 'glxinfo -l' to show the same values for GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB, GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB as for GL_MAX_PROGRAM_ENV_PARAMETERS_ARB. This is confusing and incorrect. (cherry picked from master, commit 4bccd693a72a0b42dffc849034263a68e779ca91)
Diffstat (limited to 'src/mesa/vbo')
0 files changed, 0 insertions, 0 deletions