summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-08-24 12:48:01 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-08-24 12:51:29 -0700
commit4bccd693a72a0b42dffc849034263a68e779ca91 (patch)
tree010de9237b1bc6787e3ea36de28ba6b73c222844 /src/mesa/drivers/dri
parent1e2a71c5c25f63c804b60d88b09f946ff9e3a628 (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.
Diffstat (limited to 'src/mesa/drivers/dri')
0 files changed, 0 insertions, 0 deletions