[Bf-blender-cvs] [85f179eb238] blender2.8: Fix T53399: Dopesheet keyframes and the drawing of points were not visible with some Intel cards
Germano
noreply at git.blender.org
Fri Feb 16 21:02:42 CET 2018
Commit: 85f179eb238160050e3fdc507fc90da6c3c574e1
Author: Germano
Date: Fri Feb 16 18:02:06 2018 -0200
Branches: blender2.8
https://developer.blender.org/rB85f179eb238160050e3fdc507fc90da6c3c574e1
Fix T53399: Dopesheet keyframes and the drawing of points were not visible with some Intel cards
===================================================================
M intern/ghost/intern/GHOST_ContextWGL.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_ContextWGL.cpp b/intern/ghost/intern/GHOST_ContextWGL.cpp
index 14f1ac54fff..7b5e30247a8 100644
--- a/intern/ghost/intern/GHOST_ContextWGL.cpp
+++ b/intern/ghost/intern/GHOST_ContextWGL.cpp
@@ -898,6 +898,15 @@ GHOST_TSuccess GHOST_ContextWGL::initializeDrawingContext()
initContextGLEW();
+ if (is_crappy_intel_card()) {
+ /* Some Intel cards with context 4.1 or 4.2
+ * don't have the point sprite enabled by default.
+ *
+ * However GL_POINT_SPRITE was removed in 3.2 and is now permanently ON.
+ * Then use brute force. */
+ glEnable(GL_POINT_SPRITE);
+ }
+
initClearGL();
::SwapBuffers(m_hDC);
More information about the Bf-blender-cvs
mailing list