From b26bbc0099070970009660b7c513a4c748ae73ec Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Tue, 25 Jun 2013 23:06:08 +0800 Subject: [PATCH] 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) --- README.md | 2 +- src/opengl.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c6c111..109b8fd 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ __R__ for runtime * libdrm (B) (Can be disabled with `NO_VSYNC_DRM` at compile time) * libGL (B,R) (Can be disabled with `NO_VSYNC_OPENGL` at compile time) * libdbus (B,R) (Can be disabled with `NO_DBUS` at compile time) -* asciidoc (B) +* asciidoc (B) (and docbook-xml-dtd-4.5, libxml-utils, libxslt, xsltproc, xmlto, etc. if your distro doesn't pull them in) ### How to build diff --git a/src/opengl.c b/src/opengl.c index 635cd33..c9be5be 100644 --- a/src/opengl.c +++ b/src/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) {