diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-06 17:52:09 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-06 17:52:09 +0000 |
| commit | 57817f7252e3acbe48620b6764a77fecb6bb0ec1 (patch) | |
| tree | 90235b12f926d50c0f3c1250e0aff8641f29614c /src/render/Framebuffer.cpp | |
| parent | b4c45aa2e3af0e595a6276986290c78d11465746 (diff) | |
Added resize transitions
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 |
