fix texture id bug, few gestures bugs solved

This commit is contained in:
2017-05-12 01:30:56 +01:00
parent 6f785c1944
commit 6dbb8bf3a1
9 changed files with 58 additions and 26 deletions

View File

@@ -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
{