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)
This commit is contained in:
Richard Grenville 2013-06-25 23:06:08 +08:00
parent c02b3fadf0
commit b26bbc0099
2 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@ __R__ for runtime
* libdrm (B) (Can be disabled with `NO_VSYNC_DRM` at compile time) * 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) * 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) * 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 ### How to build

View File

@ -1035,7 +1035,8 @@ glx_blur_dst(session_t *ps, int dx, int dy, int width, int height, float z,
if (!last_pass) { if (!last_pass) {
static const GLenum DRAWBUFS[2] = { GL_COLOR_ATTACHMENT0 }; static const GLenum DRAWBUFS[2] = { GL_COLOR_ATTACHMENT0 };
glBindFramebuffer(GL_FRAMEBUFFER, fbo); 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); glDrawBuffers(1, DRAWBUFS);
if (glCheckFramebufferStatus(GL_FRAMEBUFFER) if (glCheckFramebufferStatus(GL_FRAMEBUFFER)
!= GL_FRAMEBUFFER_COMPLETE) { != GL_FRAMEBUFFER_COMPLETE) {