summaryrefslogtreecommitdiff
path: root/tests/OffscreenContextGLX.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-11-22 02:28:35 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-11-22 02:28:35 (GMT)
commit03442e31241a859701c9efaf7525c9752444fa9f (patch)
tree6917a22ca0430b8f21134f12538f8ddf3d9dfd0b /tests/OffscreenContextGLX.cc
parent4843022bf4755d7fafe58faee430a6f62f51ca8f (diff)
fixing GLX setup
Diffstat (limited to 'tests/OffscreenContextGLX.cc')
-rw-r--r--tests/OffscreenContextGLX.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/OffscreenContextGLX.cc b/tests/OffscreenContextGLX.cc
index 3523021..41f01f7 100644
--- a/tests/OffscreenContextGLX.cc
+++ b/tests/OffscreenContextGLX.cc
@@ -137,11 +137,12 @@ bool create_glx_dummy_window(OffscreenContext &ctx)
int attributes[] = {
GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT,
GLX_RENDER_TYPE, GLX_RGBA_BIT,
- GLX_RED_SIZE, 1,
- GLX_GREEN_SIZE, 1,
- GLX_BLUE_SIZE, 1,
- GLX_ALPHA_SIZE, 1, // extra stuff for fbo-disbaled on-screen testing.
+ GLX_RED_SIZE, 8,
+ GLX_GREEN_SIZE, 8,
+ GLX_BLUE_SIZE, 8,
+ GLX_ALPHA_SIZE, 8, // extra stuff for fbo-disbaled on-screen testing.
GLX_DEPTH_SIZE, 24,
+ GLX_STENCIL_SIZE, 8,
None
};
@@ -271,11 +272,11 @@ OffscreenContext *create_offscreen_context(int w, int h)
}
// cerr << glew_dump(0);
-/* ctx->fbo = fbo_new();
+ ctx->fbo = fbo_new();
if (!fbo_init(ctx->fbo, w, h)) {
cerr << "GL Framebuffer Object init failed; dumping GLEW info" << endl;
return NULL;
- }*/
+ }
return ctx;
}
contact: Jan Huwald // Impressum