summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/cpuinfo.h
diff options
context:
space:
mode:
authorEduardo Lima Mitev <[email protected]>2015-07-29 16:01:26 +0200
committerEduardo Lima Mitev <[email protected]>2015-08-05 08:20:16 +0200
commit5d64cae8427b090c42d6d38da7fb474b3ddd4eb0 (patch)
treef08febbe7cde3bffafb47406559c16c4ff081b05 /src/mesa/main/cpuinfo.h
parentb38a50f1e3edae6079c91f73a8d9c63a2dbf512a (diff)
mesa: Validate target before resolving tex obj in glTex(ture)SubImageXD
Currently, glTexSubImageXD attempt to resolve the texture object (by calling _mesa_get_current_tex_object()) before validating the given target. However, that method explicitly states that target must have been validated before calling it, so it never returns a user error. The target validation occurs later when texsubimage_error_check() is called. This patch reorganizes target validation, taking it out from the error check function and into a point before the texture object is resolved. Reviewed-by: Ian Romanick <[email protected]> Cc: 10.6 <[email protected]>
Diffstat (limited to 'src/mesa/main/cpuinfo.h')
0 files changed, 0 insertions, 0 deletions