Sculpt Branch:
[blender-staging.git] / source / blender / gpu / intern / gpu_buffers.c
index ec9392c369407955c375cdaa6daee1300279fff1..af220487ab19a3f6194adf4c6cd6d9c0bb005ff3 100644 (file)
@@ -741,15 +741,9 @@ GPUBuffer *GPU_buffer_setup( DerivedMesh *dm, GPUDrawObject *object, int size, G
 
        DEBUG_VBO("GPU_buffer_setup\n");
 
-       if( globalPool == 0 ) {
+       if( globalPool == 0 )
                globalPool = GPU_buffer_pool_new();
 
-               /* somehow GL_NORMAL_ARRAY is enabled on startup and causes edge drawing code to crash */
-               glDisableClientState( GL_VERTEX_ARRAY );
-               glDisableClientState( GL_NORMAL_ARRAY );
-               glDisableClientState( GL_TEXTURE_COORD_ARRAY );
-               glDisableClientState( GL_COLOR_ARRAY );
-       }
        buffer = GPU_buffer_alloc(size,globalPool);
        if( buffer == 0 ) {
                dm->drawObject->legacy = 1;