glsl: lower mediump temporaries to 16 bits except structures (v2)
[mesa.git] / src / mesa / main / objectpurge.c
index d730f46b8ec1c4d5bc6b2cf8ab715182f0e131e2..78bc44876174d3bcf7e1dfee8d9455cedfcf0f6f 100644 (file)
@@ -31,7 +31,7 @@
 #include "glheader.h"
 #include "enums.h"
 #include "hash.h"
-#include "imports.h"
+
 #include "context.h"
 #include "bufferobj.h"
 #include "fbobject.h"
@@ -53,10 +53,6 @@ buffer_object_purgeable(struct gl_context *ctx, GLuint name, GLenum option)
                   "glObjectPurgeable(name = 0x%x)", name);
       return 0;
    }
-   if (!_mesa_is_bufferobj(bufObj)) {
-      _mesa_error(ctx, GL_INVALID_OPERATION, "glObjectPurgeable(buffer 0)" );
-      return 0;
-   }
 
    if (bufObj->Purgeable) {
       _mesa_error(ctx, GL_INVALID_OPERATION,