- moved CreateTexBuffer out of the GL code.

This is merely a buffer creation function with no dependencies on the renderer.
This commit is contained in:
Christoph Oelckers 2018-04-01 14:38:48 +02:00
commit 8b79eedfea
12 changed files with 154 additions and 160 deletions

View file

@ -413,22 +413,6 @@ void FGLRenderer::EndOffscreen()
glBindFramebuffer(GL_FRAMEBUFFER, mOldFBID);
}
//===========================================================================
//
//
//
//===========================================================================
unsigned char *FGLRenderer::GetTextureBuffer(FTexture *tex, int &w, int &h)
{
FMaterial * gltex = FMaterial::ValidateTexture(tex, false);
if (gltex)
{
return gltex->CreateTexBuffer(0, w, h);
}
return NULL;
}
//===========================================================================
//
// Vertex buffer for 2D drawer