diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2014-06-17 14:58:14 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2014-07-15 10:46:33 -0700 |
commit | ee58c71a65bb5b769a03e4b25bd13c57a6b742d8 (patch) | |
tree | 37b18d2367c5ef73d96559b23ed4a616d8c1fe0f /src/glx/eval.c | |
parent | 83214edf8a8a495c29392fce4a767ea4401eac00 (diff) | |
download | external_mesa3d-ee58c71a65bb5b769a03e4b25bd13c57a6b742d8.zip external_mesa3d-ee58c71a65bb5b769a03e4b25bd13c57a6b742d8.tar.gz external_mesa3d-ee58c71a65bb5b769a03e4b25bd13c57a6b742d8.tar.bz2 |
mesa: Handle uninitialized textures like other textures in get_tex_level_parameter_image
Instead of catching the special case early, handle it by constructing a
fake gl_texture_image that will cause the values required by the OpenGL
4.0 spec to be returned.
Previously, calling
glGenTextures(1, &t);
glBindTexture(GL_TEXTURE_2D, t);
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, 0xDEADBEEF, &value);
would not generate an error.
Anuj: Can you verify this does not regress proxy_textures_invalid_size?
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Suggested-by: Brian Paul <brianp@vmware.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Cc: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/glx/eval.c')
0 files changed, 0 insertions, 0 deletions