fix texture id bug, few gestures bugs solved
This commit is contained in:
@@ -25,6 +25,7 @@ void RTT::destroy()
|
||||
{
|
||||
unbindTexture();
|
||||
glDeleteTextures(1, &texID);
|
||||
LOG("TEX rtt destroy %d", texID)
|
||||
}
|
||||
if (fboID)
|
||||
{
|
||||
@@ -32,6 +33,7 @@ void RTT::destroy()
|
||||
glDeleteFramebuffers(1, &fboID);
|
||||
LOG("RTT DESTROY %d", fboID);
|
||||
}
|
||||
texID = 0;
|
||||
fboID = 0;
|
||||
rboID = 0;
|
||||
// w = 0;
|
||||
@@ -49,6 +51,7 @@ bool RTT::create(int width, int height, int tex/* = -1*/)
|
||||
if (tex == -1)
|
||||
{
|
||||
glGenTextures(1, &texID);
|
||||
LOG("TEX rtt create %d", texID);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user