Commit 360c28e1 authored by Jan Möbius's avatar Jan Möbius
Browse files

Implemented missing read functions for current bound framebuffer. refs #373

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13684 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e8627a33
......@@ -1929,7 +1929,15 @@ void GLState::drawBuffers(GLsizei _n, const GLenum* _bufs)
}
}
/// get current framebuffer of a target
GLuint GLState::getFramebufferDraw(GLenum _target) {
return stateStack_.back().framebuffers_[0];
}
/// get current framebuffer of a target
GLuint GLState::getFramebufferRead(GLenum _target) {
return stateStack_.back().framebuffers_[1];
}
void GLState::bindFramebuffer(GLenum _target, GLuint _framebuffer)
{
......
......@@ -523,8 +523,10 @@ public:
/// replaces glBindFramebuffer, supports locking
static void bindFramebuffer(GLenum _target, GLuint _framebuffer);
/// get current framebuffer of a target
static GLuint getFramebuffer(GLenum _target);
/// get current draw framebuffer of a target
static GLuint getFramebufferDraw(GLenum _target);
/// get current read framebuffer of a target
static GLuint getFramebufferRead(GLenum _target);
/// lock a framebuffer target
static void lockFramebuffer(GLenum _target);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment