webgl: finish, flush, detachShader, generateMipmap, Uniform1i

This commit is contained in:
Connor Brewster 2016-03-26 18:23:16 -06:00
parent d0f692b2c5
commit 3fd7634f54
14 changed files with 634 additions and 12 deletions

View file

@ -99,7 +99,7 @@ impl WebGLShader {
let validator = ShaderValidator::for_webgl(self.gl_type,
SHADER_OUTPUT_FORMAT,
&BuiltInResources::default()).unwrap();
match validator.compile_and_translate(&[source.as_bytes()]) {
match validator.compile_and_translate(&[source]) {
Ok(translated_source) => {
// NOTE: At this point we should be pretty sure that the compilation in the paint thread
// will succeed.