diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-10-01 10:54:06 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-10-01 14:11:52 -0700 |
commit | feede2aee6fe3e721ee71ffc35b277f1d9260e03 (patch) | |
tree | c6df2da8461c6ae5578dac9a999a040cd903e32d /libs/rs/rsScriptC_LibGL.cpp | |
parent | e0ad63bf1e038dd84ec2502243236f86104f990d (diff) |
fixing bugs 3053960, 3044804, 3044798
shader cleanup and removing unnecessary state setup.
Change-Id: Ibddf2ad3a26bb983fc43bdeb58b1cec6224920b4
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); |