Commit 85cf63e0 authored by James Darpinian's avatar James Darpinian Committed by Commit Bot

Fix validation in bindAttribLocation

All other WebGL functions that take a program argument use the
function ValidateWebGLProgramOrShader instead of ValidateWebGLObject.
Fix bindAttribLocation to match.

Change-Id: Ic4823c9b0fd0478ac4428293f7a0fc608e873348
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2311128
Commit-Queue: James Darpinian <jdarpinian@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
Auto-Submit: James Darpinian <jdarpinian@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790675}
parent 591d8158
...@@ -1856,7 +1856,7 @@ void WebGLRenderingContextBase::attachShader(WebGLProgram* program, ...@@ -1856,7 +1856,7 @@ void WebGLRenderingContextBase::attachShader(WebGLProgram* program,
void WebGLRenderingContextBase::bindAttribLocation(WebGLProgram* program, void WebGLRenderingContextBase::bindAttribLocation(WebGLProgram* program,
GLuint index, GLuint index,
const String& name) { const String& name) {
if (!ValidateWebGLObject("bindAttribLocation", program)) if (!ValidateWebGLProgramOrShader("bindAttribLocation", program))
return; return;
if (!ValidateLocationLength("bindAttribLocation", name)) if (!ValidateLocationLength("bindAttribLocation", name))
return; return;
......
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