Commit aed7c570 by Jamie Madill Committed by Commit Bot

GL: Don't call seamless cube cap on GLES.

This cap is only valid on desktop GL. There might be extensions where the feature is available as well, so we should follow up and check for the extensions as well. This fixes a Debug runtime warning in almost every end2end_test on GLES. BUG=angleproject:2085 Change-Id: I5edc1c667b58230df903da82de2a8aceb0369c0c Reviewed-on: https://chromium-review.googlesource.com/546597Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent e7b96340
......@@ -1876,6 +1876,12 @@ void StateManagerGL::setPathRenderingStencilState(GLenum func, GLint ref, GLuint
void StateManagerGL::setTextureCubemapSeamlessEnabled(bool enabled)
{
// TODO(jmadill): Also check for seamless extension.
if (!mFunctions->isAtLeastGL(gl::Version(3, 2)))
{
return;
}
if (mTextureCubemapSeamlessEnabled != enabled)
{
mTextureCubemapSeamlessEnabled = enabled;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment