destroy all textures on window destruction and restore OpenGL objects when Android resumes the app
This commit is contained in:
@@ -144,7 +144,7 @@ void RTT::readTextureData(uint8_t* buffer)
|
||||
|
||||
uint8_t* RTT::createBuffer()
|
||||
{
|
||||
return new uint8_t[w * h * 3];
|
||||
return new uint8_t[w * h * 4];
|
||||
}
|
||||
|
||||
void RTT::bindTexture()
|
||||
|
||||
Reference in New Issue
Block a user