aboutsummaryrefslogtreecommitdiffstats
path: root/examples/support
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2016-02-09 14:40:21 +0100
committertomaka <pierre.krieger1708@gmail.com>2016-02-09 14:40:21 +0100
commit75a940d4f1240fff9adeed9b0ff869e9aa0f5814 (patch)
treea0510c0191fd5dd72bafeaecdc9c17975aeac823 /examples/support
parent03ca5d5216df371d4146717accb2cd609a76e6a8 (diff)
parent982279bc39737af0ba8ee712b744cc3335b001b0 (diff)
downloadglutin-75a940d4f1240fff9adeed9b0ff869e9aa0f5814.tar.gz
glutin-75a940d4f1240fff9adeed9b0ff869e9aa0f5814.zip
Merge pull request #668 from tomaka/emscripten
Update the emscripten port of glutin
Diffstat (limited to 'examples/support')
-rw-r--r--examples/support/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/support/mod.rs b/examples/support/mod.rs
index ebbe379..a51ca24 100644
--- a/examples/support/mod.rs
+++ b/examples/support/mod.rs
@@ -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();