Name

OfxImageEffectOpenGLRenderSuiteV1::flushResources — Request the host to minimize its GPU resource load

Synopsis

#include "ofxOpenGLRender.h" 
OfxStatus (*flushResources) ( ) ;
 

Arguments

  • -

Description

When a plugin fails to allocate GPU resources, it can call this function to request the host to flush it's GPU resources if it holds any. After the function the plugin can try again to allocate resources which then might succeed if the host actually has released anything.

\pre \post

  • No changes to the plugin GL state should have been made.

Returns

resources,