diff options
Diffstat (limited to 'libs/rs/rsScriptC_LibGL.cpp')
-rw-r--r-- | libs/rs/rsScriptC_LibGL.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libs/rs/rsScriptC_LibGL.cpp b/libs/rs/rsScriptC_LibGL.cpp index 7fd640688ca0..88db761eba2b 100644 --- a/libs/rs/rsScriptC_LibGL.cpp +++ b/libs/rs/rsScriptC_LibGL.cpp @@ -319,9 +319,7 @@ static void SC_uploadToBufferObject(RsAllocation va) static void SC_ClearColor(float r, float g, float b, float a) { GET_TLS(); - if (!rsc->setupCheck()) { - return; - } + rsc->setupProgramStore(); glClearColor(r, g, b, a); glClear(GL_COLOR_BUFFER_BIT); @@ -330,9 +328,7 @@ static void SC_ClearColor(float r, float g, float b, float a) static void SC_ClearDepth(float v) { GET_TLS(); - if (!rsc->setupCheck()) { - return; - } + rsc->setupProgramStore(); glClearDepthf(v); glClear(GL_DEPTH_BUFFER_BIT); |