add xmp injection and disable some log messages

This commit is contained in:
2017-09-27 23:02:39 +01:00
parent 90ec0b6f7b
commit 2c0007c3c1
7 changed files with 59 additions and 9 deletions

View File

@@ -25,13 +25,13 @@ void RTT::destroy()
{
unbindTexture();
glDeleteTextures(1, &texID);
LOG("TEX rtt destroy %d", texID)
//LOG("TEX rtt destroy %d", texID)
}
if (fboID)
{
unbindFramebuffer();
glDeleteFramebuffers(1, &fboID);
LOG("RTT DESTROY %d", fboID);
//LOG("RTT DESTROY %d", fboID);
}
texID = 0;
fboID = 0;
@@ -51,7 +51,7 @@ bool RTT::create(int width, int height, int tex/* = -1*/)
if (tex == -1)
{
glGenTextures(1, &texID);
LOG("TEX rtt create %d", texID);
//LOG("TEX rtt create %d", texID);
}
else
{
@@ -78,7 +78,7 @@ bool RTT::create(int width, int height, int tex/* = -1*/)
// Create a framebuffer object
glGenFramebuffers(1, &fboID);
glBindFramebuffer(GL_FRAMEBUFFER, fboID);
LOG("RTT CREATE %d - tex %d", fboID, texID);
//LOG("RTT CREATE %d - tex %d", fboID, texID);
// Attach the texture to FBO color attachment point
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texID, 0);