Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-04-25 16:17:48 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-04-25 18:43:18 +0300
commit56fbdd790899301b4baf290ae693ceb9a4d5d467 (patch)
treebd16dde42cf54c6664000a06752f62f3fa808012 /intern
parent284dbd56df5981faa9cae081ae081cf619fb8ad6 (diff)
GHOST: Fix missing glXCreatePbuffer initialisation.
For some reason this happened if no windows are created before creating an offscreen context.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_ContextGLX.cpp4
1 files changed, 3 insertions, 1 deletions
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 *)"";
}