add xmp injection and disable some log messages
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user