[Bf-blender-cvs] [56fbdd79089] blender2.8: GHOST: Fix missing glXCreatePbuffer initialisation.

Clément Foucault noreply at git.blender.org
Wed Apr 25 17:43:25 CEST 2018


Commit: 56fbdd790899301b4baf290ae693ceb9a4d5d467
Author: Clément Foucault
Date:   Wed Apr 25 15:17:48 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB56fbdd790899301b4baf290ae693ceb9a4d5d467

GHOST: Fix missing glXCreatePbuffer initialisation.

For some reason this happened if no windows are created before creating an
offscreen context.

===================================================================

M	intern/ghost/intern/GHOST_ContextGLX.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_ContextGLX.cpp b/intern/ghost/intern/GHOST_ContextGLX.cpp
index 2256e58d61d..815189b9098 100644
--- a/intern/ghost/intern/GHOST_ContextGLX.cpp
+++ b/intern/ghost/intern/GHOST_ContextGLX.cpp
@@ -149,7 +149,9 @@ GHOST_TSuccess GHOST_ContextGLX::initializeDrawingContext()
 		    (glXChooseFBConfig = (PFNGLXCHOOSEFBCONFIGPROC)glXGetProcAddressARB(
 		             (const GLubyte *)"glXChooseFBConfig")) == NULL ||
 		    (glXCreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC)glXGetProcAddressARB(
-		             (const GLubyte *)"glXCreateContextAttribsARB")) == NULL)
+		             (const GLubyte *)"glXCreateContextAttribsARB")) == NULL ||
+		    (glXCreatePbuffer = (PFNGLXCREATEPBUFFERPROC)glXGetProcAddressARB(
+		             (const GLubyte *)"glXCreatePbuffer")) == NULL)
 		{
 			extStart = (GLubyte *)"";
 		}



More information about the Bf-blender-cvs mailing list