diff --git a/Shadertoy/ShadertoyRender.h b/Shadertoy/ShadertoyRender.h index bb61b5896..5e823cacd 100644 --- a/Shadertoy/ShadertoyRender.h +++ b/Shadertoy/ShadertoyRender.h @@ -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") ); } @@ -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 diff --git a/Test/TestOpenGLRender.h b/Test/TestOpenGLRender.h index 2930a0412..d22e90f26 100644 --- a/Test/TestOpenGLRender.h +++ b/Test/TestOpenGLRender.h @@ -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") ); } @@ -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