aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-10-04 09:51:46 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-04 14:11:42 +0000
commit69f26dbea2c31352dc85e26836ed294e7329ade9 (patch)
tree961935ae9890eb422b56938aa51c575be9967376 /src/gpu/gl
parent435db420bd726b8393558a0a446b75c1b7976b9a (diff)
Ensure glxGetProcAddress is declared
Users on some systems reported that this was necessary. Bug: skia: Change-Id: I1e7f6c4859a34008c307256ab3d77265bdbe4f6b Reviewed-on: https://skia-review.googlesource.com/55101 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/gl')
-rw-r--r--src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp b/src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp
index 4a204123e1..246a589372 100644
--- a/src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp
+++ b/src/gpu/gl/glx/GrGLCreateNativeInterface_glx.cpp
@@ -10,6 +10,8 @@
#include "gl/GrGLAssembleInterface.h"
#include "gl/GrGLUtil.h"
+// Define this to get a prototype for glXGetProcAddress on some systems
+#define GLX_GLXEXT_PROTOTYPES 1
#include <GL/glx.h>
static GrGLFuncPtr glx_get(void* ctx, const char name[]) {