OSDN Git Service

mesa: add back glGetnUniform*v() overflow error reporting
authorDylan Noblesmith <nobled@dreamwidth.org>
Thu, 22 Dec 2011 21:05:38 +0000 (21:05 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Tue, 20 Mar 2012 07:49:53 +0000 (07:49 +0000)
commitb056fc0741b6341494ad837affc597d46eea9e9a
treeea3ff725657f93a6997f73e3b455c1f19fed3b22
parentadcb1806717f90f6acff2169a4a434997f433597
mesa: add back glGetnUniform*v() overflow error reporting

The error was removed in:

commit 719909698c67c287a393d2380278e7b7495ae018
Author: Ian Romanick <ian.d.romanick@intel.com>
Date:   Tue Oct 18 16:01:49 2011 -0700

    mesa: Rewrite the way uniforms are tracked and handled

The GL_ARB_robustness spec doesn't say the implementation
should truncate the output, so just return after setting
the required error like it did before the above commit.

Also fixup an old comment and add an assert.

NOTE: This is a candidate for the 8.0 branch.
(cherry picked from commit b536ac6b2bc54ad9bb6e58fbd307055e419a288f)
src/mesa/main/uniform_query.cpp
src/mesa/main/uniforms.c