From: Brian Paul Date: Wed, 6 May 2009 15:56:26 +0000 (-0600) Subject: mesa: add GL_DOUBLE case in _mesa_sizeof_type() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87ba2285fe11dfe068798e5f8ea8e089a5d8b28b;p=mesa.git mesa: add GL_DOUBLE case in _mesa_sizeof_type() --- diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index ddae456fa12..ea76ed04e4f 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: