aboutsummaryrefslogtreecommitdiff
path: root/samples/OpenGL/x11argb_opengl_glsl
diff options
context:
space:
mode:
authorWolfgang Draxinger <code@datenwolf.net>2020-12-14 18:34:08 +0100
committerWolfgang Draxinger <code@datenwolf.net>2020-12-14 18:34:08 +0100
commitfe85753859d3994c3d74860258be122a1bb86aa3 (patch)
tree2773b423ea173c335e8f88411b93f6dfe9f8a94e /samples/OpenGL/x11argb_opengl_glsl
parenta00fb682a7e3552ab4f5ee0a161d0e21d17d6a26 (diff)
downloadcodesamples-fe85753859d3994c3d74860258be122a1bb86aa3.tar.gz
codesamples-fe85753859d3994c3d74860258be122a1bb86aa3.tar.bz2
minimal example for X11 MIT-SHM with Xcb
Diffstat (limited to 'samples/OpenGL/x11argb_opengl_glsl')
-rw-r--r--samples/OpenGL/x11argb_opengl_glsl/Makefile4
-rw-r--r--samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/samples/OpenGL/x11argb_opengl_glsl/Makefile b/samples/OpenGL/x11argb_opengl_glsl/Makefile
index 62e3496..b5e461a 100644
--- a/samples/OpenGL/x11argb_opengl_glsl/Makefile
+++ b/samples/OpenGL/x11argb_opengl_glsl/Makefile
@@ -3,8 +3,8 @@
all: x11argb_opengl_glsl x11argb_opengl_glsl3
x11argb_opengl_glsl: x11argb_opengl_glsl.c Makefile
- cc -std=c99 -g3 -o x11argb_opengl_glsl x11argb_opengl_glsl.c -lX11 -lXrender -lGLEW -lm
+ cc -std=c99 -g3 -o x11argb_opengl_glsl x11argb_opengl_glsl.c -lX11 -lXrender -lGL -lGLEW -lm
x11argb_opengl_glsl3: x11argb_opengl_glsl.c Makefile
- cc -std=c99 -g3 -o x11argb_opengl_glsl3 -D USE_GLX_CREATE_CONTEXT_ATTRIB x11argb_opengl_glsl.c -lX11 -lXrender -lGLEW -lm
+ cc -std=c99 -g3 -o x11argb_opengl_glsl3 -D USE_GLX_CREATE_CONTEXT_ATTRIB x11argb_opengl_glsl.c -lX11 -lXrender -lGL -lGLEW -lm
diff --git a/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c b/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
index 7aae5a8..d64b655 100644
--- a/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
+++ b/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
@@ -365,7 +365,7 @@ static void createTheRenderContext()
{
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
GLX_CONTEXT_MINOR_VERSION_ARB, 0,
- //GLX_CONTEXT_FLAGS_ARB , GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB,
+ GLX_CONTEXT_FLAGS_ARB , GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB,
None
};