diff options
author | Fredrik Noren <fredrik.jw.noren@gmail.com> | 2016-01-18 12:45:55 -0500 |
---|---|---|
committer | Fredrik Noren <fredrik.jw.noren@gmail.com> | 2016-01-18 12:45:55 -0500 |
commit | db074dc32ff55a5c6ad3a48c6453ff83c38b0caf (patch) | |
tree | 9dc2c4673e290234db73dc52874a9754cdf55ade /tests | |
parent | a5de08485685230cd1197cbb5ee059a10b34710e (diff) | |
download | glutin-db074dc32ff55a5c6ad3a48c6453ff83c38b0caf.tar.gz glutin-db074dc32ff55a5c6ad3a48c6453ff83c38b0caf.zip |
Use GLES
Diffstat (limited to 'tests')
-rw-r--r-- | tests/headless.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/headless.rs b/tests/headless.rs index c8064c7..c6a5636 100644 --- a/tests/headless.rs +++ b/tests/headless.rs @@ -4,6 +4,7 @@ use glutin::*; use std::ptr; mod gl { + pub use self::Gles2 as Gl; include!(concat!(env!("OUT_DIR"), "/test_gl_bindings.rs")); } use gl::types::*; @@ -31,7 +32,7 @@ fn test_headless() { gl.TexParameteri(gl::TEXTURE_2D, gl::TEXTURE_MIN_FILTER, gl::LINEAR as i32); gl.TexImage2D(gl::TEXTURE_2D, 0, gl::RGBA as i32, width, height, 0, gl::RGBA, gl::UNSIGNED_BYTE, ptr::null()); - gl.FramebufferTexture(gl::FRAMEBUFFER, gl::COLOR_ATTACHMENT0, texture, 0); + gl.FramebufferTexture2D(gl::FRAMEBUFFER, gl::COLOR_ATTACHMENT0, gl::TEXTURE_2D, texture, 0); let status = gl.CheckFramebufferStatus(gl::FRAMEBUFFER); if status != gl::FRAMEBUFFER_COMPLETE { panic!("Error while creating the framebuffer"); |