summaryrefslogtreecommitdiff
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-06 09:56:26 -0600
committerBrian Paul <brianp@vmware.com>2009-05-07 10:12:32 -0600
commit87ba2285fe11dfe068798e5f8ea8e089a5d8b28b (patch)
treea770a09ab67eea517db0a3d8685d782dd3c10f29 /src/mesa/main/image.c
parent2369f14245222a9c073846baa1bb03e23aa37c15 (diff)
mesa: add GL_DOUBLE case in _mesa_sizeof_type()
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r--src/mesa/main/image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index ddae456fa1..ea76ed04e4 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -181,6 +181,8 @@ _mesa_sizeof_type( GLenum type )
return sizeof(GLint);
case GL_FLOAT:
return sizeof(GLfloat);
+ case GL_DOUBLE:
+ return sizeof(GLdouble);
case GL_HALF_FLOAT_ARB:
return sizeof(GLhalfARB);
default: