Mesa (master): mesa: add GL_DOUBLE case in _mesa_sizeof_type()

Brian Paul brianp at kemper.freedesktop.org
Thu May 7 16:17:00 UTC 2009


Module: Mesa
Branch: master
Commit: 87ba2285fe11dfe068798e5f8ea8e089a5d8b28b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=87ba2285fe11dfe068798e5f8ea8e089a5d8b28b

Author: Brian Paul <brianp at vmware.com>
Date:   Wed May  6 09:56:26 2009 -0600

mesa: add GL_DOUBLE case in _mesa_sizeof_type()

---

 src/mesa/main/image.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index ddae456..ea76ed0 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:




More information about the mesa-commit mailing list