mesa: add GL_DOUBLE case in _mesa_sizeof_type()
authorBrian Paul <brianp@vmware.com>
Wed, 6 May 2009 15:56:26 +0000 (09:56 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 7 May 2009 16:12:32 +0000 (10:12 -0600)
src/mesa/main/image.c

index ddae456fa129b4b4c6f03bb80ed415c20d05c90d..ea76ed04e4fdbde9905ae871ddf4d1c869bf4eac 100644 (file)
@@ -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: