From c7412b3b08d62c298dc7c3e5f369f406a3c0eac2 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 14 Oct 2009 15:43:53 -0700 Subject: [PATCH] Minor bug fixes and add glError check. --- libs/rs/rsContext.cpp | 6 ++++++ libs/rs/rsProgramRaster.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index 33ed0ca0a3862..51277172a0f92 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -145,6 +145,12 @@ bool Context::runRootScript() } mStateFragmentStore.mLast.clear(); bool ret = runScript(mRootScript.get(), 0); + + GLenum err = glGetError(); + if (err != GL_NO_ERROR) { + LOGE("Pending GL Error, 0x%x", err); + } + return ret; } diff --git a/libs/rs/rsProgramRaster.cpp b/libs/rs/rsProgramRaster.cpp index fcf6824f691d1..51ae7cf61f167 100644 --- a/libs/rs/rsProgramRaster.cpp +++ b/libs/rs/rsProgramRaster.cpp @@ -74,7 +74,7 @@ void ProgramRaster::setupGL(const Context *rsc, ProgramRasterState *state) if (mLineSmooth) { glEnable(GL_LINE_SMOOTH); } else { - glEnable(GL_LINE_SMOOTH); + glDisable(GL_LINE_SMOOTH); } if (rsc->checkVersion1_1()) {