Added resize transitions

This commit is contained in:
vaxerski
2022-11-06 17:52:09 +00:00
parent b4c45aa2e3
commit 57817f7252
11 changed files with 192 additions and 29 deletions

View File

@@ -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;
}