summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_validate.c
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-05-22 16:09:53 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2016-05-23 20:00:39 -0400
commit2e8e1e89090ddfc95ae3b732b7b810d68c3217e5 (patch)
tree2f4e9d097c88f4e834b0985ca1d03514bba2bb77 /src/mesa/main/api_validate.c
parent1e99a46b446522dbb12634139c2f2060d5dabf94 (diff)
downloadexternal_mesa3d-2e8e1e89090ddfc95ae3b732b7b810d68c3217e5.zip
external_mesa3d-2e8e1e89090ddfc95ae3b732b7b810d68c3217e5.tar.gz
external_mesa3d-2e8e1e89090ddfc95ae3b732b7b810d68c3217e5.tar.bz2
main: check driver float texture support before upgrading to 16F/32F
When passing in GL_RGBA or other base formats, we will try to upgrade the format to whatever the passed in type was. However not all drivers (notably nv30) support 32F textures, and so this would lead to crashes down the line. Only upgrade when the relevant extensions are available. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/api_validate.c')
0 files changed, 0 insertions, 0 deletions