File tree 1 file changed +0
-25
lines changed
glutin_examples/examples/support
1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -11,35 +11,10 @@ pub struct Gl {
11
11
pub gl : gl:: Gl ,
12
12
}
13
13
14
- extern "system" fn dbg_callback (
15
- source : gl:: types:: GLenum ,
16
- etype : gl:: types:: GLenum ,
17
- _id : gl:: types:: GLuint ,
18
- severity : gl:: types:: GLenum ,
19
- _msg_length : gl:: types:: GLsizei ,
20
- msg : * const gl:: types:: GLchar ,
21
- _user_data : * mut std:: ffi:: c_void ,
22
- ) {
23
- unsafe {
24
- println ! (
25
- "dbg_callback {:#X} {:#X} {:#X} {:?}" ,
26
- source,
27
- etype,
28
- severity,
29
- std:: ffi:: CStr :: from_ptr( msg) ,
30
- ) ;
31
- }
32
- }
33
-
34
14
pub fn load ( gl_context : & glutin:: Context < PossiblyCurrent > ) -> Gl {
35
15
let gl =
36
16
gl:: Gl :: load_with ( |ptr| gl_context. get_proc_address ( ptr) as * const _ ) ;
37
17
38
- unsafe {
39
- gl. Enable ( gl:: DEBUG_OUTPUT ) ;
40
- gl. DebugMessageCallback ( dbg_callback, std:: ptr:: null ( ) ) ;
41
- }
42
-
43
18
let version = unsafe {
44
19
let data = CStr :: from_ptr ( gl. GetString ( gl:: VERSION ) as * const _ )
45
20
. to_bytes ( )
You can’t perform that action at this time.
0 commit comments