diff options
author | Brian Paul <[email protected]> | 2015-09-30 11:48:07 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-10-01 07:45:43 -0600 |
commit | 1c6689bf03fe500cc1bc55d7c2039c0aa3ae095c (patch) | |
tree | c58eea3962b587070370cc4736746f7d067abc05 /src/glsl | |
parent | a9408f3ca14f2fb6286bd66bad06ee1bde0d8697 (diff) |
mesa: fix incorrect error in _mesa_BindTextureUnit()
If the texture object exists, but the Name field is zero, it means
the object was created but never bound to a target. Trying to bind it
in _mesa_BindTextureUnit() should generate GL_INVALID_OPERATION.
Fixes piglit's arb_direct_state_access-bind-texture-unit test.
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl')
0 files changed, 0 insertions, 0 deletions