summaryrefslogtreecommitdiffstats
path: root/opengl.c
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2013-06-25 23:06:08 +0800
committerRichard Grenville <[email protected]>2013-06-25 23:08:41 +0800
commit291fba3b6dc0e24ca7e5e17bbca5e7fa5ff51ca0 (patch)
tree974c252ed6fcbd1d689d93113c402a8abc4c041e /opengl.c
parent1096bf90d96bc18a7e09fe5f26fa0c703f1fbdf8 (diff)
downloadtdebase-291fba3b6dc0e24ca7e5e17bbca5e7fa5ff51ca0.tar.gz
tdebase-291fba3b6dc0e24ca7e5e17bbca5e7fa5ff51ca0.zip
Misc: OpenGL 3.0 compatibility & misc
- Fix OpenGL 3.0 compatibility by changing glFramebufferTexture() to glFramebufferTexture2D(). Thanks to danfe for suggestion! - Add notification about DocBook toolchina dependencies. Thanks to danfe. (#121)
Diffstat (limited to 'opengl.c')
-rw-r--r--opengl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opengl.c b/opengl.c
index 635cd33ef..c9be5beec 100644
--- a/opengl.c
+++ b/opengl.c
@@ -1035,7 +1035,8 @@ glx_blur_dst(session_t *ps, int dx, int dy, int width, int height, float z,
if (!last_pass) {
static const GLenum DRAWBUFS[2] = { GL_COLOR_ATTACHMENT0 };
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
- glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, tex_scr2, 0);
+ glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
+ GL_TEXTURE_2D, tex_scr2, 0);
glDrawBuffers(1, DRAWBUFS);
if (glCheckFramebufferStatus(GL_FRAMEBUFFER)
!= GL_FRAMEBUFFER_COMPLETE) {