am c7412b3b: Minor bug fixes and add glError check.
Merge commit 'c7412b3b08d62c298dc7c3e5f369f406a3c0eac2' into eclair-mr2 * commit 'c7412b3b08d62c298dc7c3e5f369f406a3c0eac2': Minor bug fixes and add glError check.
This commit is contained in:
@@ -145,6 +145,12 @@ bool Context::runRootScript()
|
|||||||
}
|
}
|
||||||
mStateFragmentStore.mLast.clear();
|
mStateFragmentStore.mLast.clear();
|
||||||
bool ret = runScript(mRootScript.get(), 0);
|
bool ret = runScript(mRootScript.get(), 0);
|
||||||
|
|
||||||
|
GLenum err = glGetError();
|
||||||
|
if (err != GL_NO_ERROR) {
|
||||||
|
LOGE("Pending GL Error, 0x%x", err);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ void ProgramRaster::setupGL(const Context *rsc, ProgramRasterState *state)
|
|||||||
if (mLineSmooth) {
|
if (mLineSmooth) {
|
||||||
glEnable(GL_LINE_SMOOTH);
|
glEnable(GL_LINE_SMOOTH);
|
||||||
} else {
|
} else {
|
||||||
glEnable(GL_LINE_SMOOTH);
|
glDisable(GL_LINE_SMOOTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rsc->checkVersion1_1()) {
|
if (rsc->checkVersion1_1()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user