Minor bug fixes and add glError check.

This commit is contained in:
Jason Sams
2009-10-14 15:43:53 -07:00
parent 6a17e163a0
commit c7412b3b08
2 changed files with 7 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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()) {