| Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| index b7ac1724db73a9900f6466729d0dc524219d334b..6031254747f8a4357bb107f7318e08837d1d2667 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| @@ -3222,4 +3222,16 @@ GLenum WebGL2RenderingContextBase::boundFramebufferColorFormat()
|
| return GL_RGB;
|
| }
|
|
|
| +const WebGLSamplerState* WebGL2RenderingContextBase::getTextureUnitSamplerState(GLenum target, GLuint unit) const
|
| +{
|
| + ASSERT(unit < m_samplerUnits.size());
|
| +
|
| + WebGLSampler* sampler = m_samplerUnits[unit];
|
| +
|
| + if (sampler)
|
| + return sampler->getSamplerState();
|
| +
|
| + return WebGLRenderingContextBase::getTextureUnitSamplerState(target, unit);
|
| +}
|
| +
|
| } // namespace blink
|
|
|