- 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:
parent
711a88bab3
commit
8b79eedfea
12 changed files with 154 additions and 160 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue