Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple of WebGL changes before lunch time #21747

Merged
merged 4 commits into from Sep 20, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Fix the error when calling getProgramInfoLog on a deleted program (#2…

  • Loading branch information
nox committed Sep 20, 2018
commit a3d8b5d2d3c3b50e2c357b9dfd491acee78cb593
@@ -414,7 +414,7 @@ impl WebGLProgram {
/// glGetProgramInfoLog
pub fn get_info_log(&self) -> WebGLResult<String> {
if self.is_deleted() {
return Err(WebGLError::InvalidOperation);
return Err(WebGLError::InvalidValue);
}
if self.link_called.get() {
let shaders_compiled = match (self.fragment_shader.get(), self.vertex_shader.get()) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.