Skip to content

Commit

Permalink
OpenGL: remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed May 10, 2016
1 parent e9efd4b commit 7e12ebb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions Shadertoy/ShadertoyRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ ShadertoyPlugin::RENDERFUNC(const OFX::RenderArguments &args)
# ifdef OFX_SUPPORTS_OPENGLRENDER
const int& gl_enabled = args.openGLEnabled;
const OFX::ImageEffectHostDescription &gHostDescription = *OFX::getImageEffectHostDescription();
DPRINT( ("render: openGLSuite %s\n", gHostDescription.supportsOpenGLRender ? "found" : "not found") );
//DPRINT( ("render: openGLSuite %s\n", gHostDescription.supportsOpenGLRender ? "found" : "not found") );
if (gHostDescription.supportsOpenGLRender) {
DPRINT( ("render: openGL rendering %s\n", gl_enabled ? "enabled" : "DISABLED") );
}
Expand All @@ -720,10 +720,8 @@ ShadertoyPlugin::RENDERFUNC(const OFX::RenderArguments &args)
# endif
# endif

const OfxRectI renderWindow = args.renderWindow;
DPRINT( ("Render: window = [%d, %d - %d, %d]\n",
renderWindow.x1, renderWindow.y1,
renderWindow.x2, renderWindow.y2) );
const OfxRectI& renderWindow = args.renderWindow;
//DPRINT( ("Render: window = [%d, %d - %d, %d]\n", renderWindow.x1, renderWindow.y1, renderWindow.x2, renderWindow.y2) );


// get the output image texture
Expand Down
8 changes: 3 additions & 5 deletions Test/TestOpenGLRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ TestOpenGLPlugin::RENDERFUNC(const OFX::RenderArguments &args)
# ifdef OFX_SUPPORTS_OPENGLRENDER
const int& gl_enabled = args.openGLEnabled;
const OFX::ImageEffectHostDescription &gHostDescription = *OFX::getImageEffectHostDescription();
DPRINT( ("render: openGLSuite %s\n", gHostDescription.supportsOpenGLRender ? "found" : "not found") );
//DPRINT( ("render: openGLSuite %s\n", gHostDescription.supportsOpenGLRender ? "found" : "not found") );
if (gHostDescription.supportsOpenGLRender) {
DPRINT( ("render: openGL rendering %s\n", gl_enabled ? "enabled" : "DISABLED") );
}
Expand All @@ -569,10 +569,8 @@ TestOpenGLPlugin::RENDERFUNC(const OFX::RenderArguments &args)
# endif
# endif

const OfxRectI renderWindow = args.renderWindow;
DPRINT( ("renderWindow = [%d, %d - %d, %d]\n",
renderWindow.x1, renderWindow.y1,
renderWindow.x2, renderWindow.y2) );
const OfxRectI& renderWindow = args.renderWindow;
//DPRINT( ("renderWindow = [%d, %d - %d, %d]\n", renderWindow.x1, renderWindow.y1,renderWindow.x2, renderWindow.y2) );


// get the output image texture
Expand Down

0 comments on commit 7e12ebb

Please sign in to comment.