OpenGL: fix point sprites
authorMike Erwin <significant.bit@gmail.com>
Sat, 1 Oct 2016 21:34:41 +0000 (17:34 -0400)
committerMike Erwin <significant.bit@gmail.com>
Sat, 1 Oct 2016 21:34:41 +0000 (17:34 -0400)
Apparently GL_POINT_SPRITE is important to GL 3.2+ compatibility profile, not just to GL 2.1 as thought.

We'll remove this during the core profile transition.

source/blender/gpu/intern/gpu_draw.c

index 96a35f093fa0fdffa2ac39326f6f42592eabbe6c..6717ad071c79d0560829dc4b7785961b8964c24f 100644 (file)
@@ -2249,10 +2249,10 @@ void GPU_state_init(void)
        GPU_default_lights();
 
        GPU_disable_program_point_size();
-#ifdef __APPLE__
+
        /* TODO: remove this when we switch to core profile */
        glEnable(GL_POINT_SPRITE);
-#endif
+
 
        glDepthFunc(GL_LEQUAL);
        /* scaling matrices */