diff options
Diffstat (limited to 'src/render/Framebuffer.cpp')
| -rw-r--r-- | src/render/Framebuffer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/Framebuffer.cpp b/src/render/Framebuffer.cpp index 33bf321b..a1b45fc8 100644 --- a/src/render/Framebuffer.cpp +++ b/src/render/Framebuffer.cpp @@ -27,7 +27,6 @@ bool CFramebuffer::alloc(int w, int h) { glBindFramebuffer(GL_FRAMEBUFFER, m_iFb); glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, m_cTex.m_iTexID, 0); - // TODO: Allow this with gles2 #ifndef GLES2 if (m_pStencilTex) { @@ -80,3 +79,7 @@ void CFramebuffer::release() { CFramebuffer::~CFramebuffer() { release(); } + +bool CFramebuffer::isAllocated() { + return m_iFb != (GLuint)-1; +}
\ No newline at end of file |
