Update the emscripten port of glutin
This commit is contained in:
parent
03ca5d5216
commit
982279bc39
8 changed files with 49 additions and 19 deletions
|
|
@ -24,11 +24,11 @@ pub fn load(window: &glutin::Window) -> Context {
|
|||
|
||||
unsafe {
|
||||
let vs = gl.CreateShader(gl::VERTEX_SHADER);
|
||||
gl.ShaderSource(vs, 1, [VS_SRC.as_ptr() as *const i8].as_ptr(), ptr::null());
|
||||
gl.ShaderSource(vs, 1, [VS_SRC.as_ptr() as *const _].as_ptr(), ptr::null());
|
||||
gl.CompileShader(vs);
|
||||
|
||||
let fs = gl.CreateShader(gl::FRAGMENT_SHADER);
|
||||
gl.ShaderSource(fs, 1, [FS_SRC.as_ptr() as *const i8].as_ptr(), ptr::null());
|
||||
gl.ShaderSource(fs, 1, [FS_SRC.as_ptr() as *const _].as_ptr(), ptr::null());
|
||||
gl.CompileShader(fs);
|
||||
|
||||
let program = gl.CreateProgram();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue