Browse Source

Remove some superfluous calls to check_gl_errors

Johannes Hofmann 7 years ago
parent
commit
4b7f8419c0
4 changed files with 1 additions and 8 deletions
  1. 0
    2
      src/atmos_layer.rs
  2. 0
    1
      src/marker_layer.rs
  3. 1
    3
      src/mercator_tile_layer.rs
  4. 0
    2
      src/ortho_tile_layer.rs

+ 0
- 2
src/atmos_layer.rs View File

@@ -51,8 +51,6 @@ impl AtmosLayer {
51 51
 
52 52
         let scale_uniform = program.get_uniform_id(cx, CStr::from_bytes_with_nul(b"scale\0").unwrap()).unwrap();
53 53
 
54
-        check_gl_errors!(cx);
55
-
56 54
         AtmosLayer {
57 55
             buffer,
58 56
             program,

+ 0
- 1
src/marker_layer.rs View File

@@ -31,7 +31,6 @@ impl MarkerLayer {
31 31
             include_bytes!("../shader/marker.vert"),
32 32
             include_bytes!("../shader/marker.frag"),
33 33
         ).unwrap();
34
-        check_gl_errors!(cx);
35 34
 
36 35
         //TODO Create textures for higher DPI factors / use mipmaps
37 36
         let texture = {

+ 1
- 3
src/mercator_tile_layer.rs View File

@@ -25,8 +25,8 @@ impl MercatorTileLayer {
25 25
     ) -> MercatorTileLayer
26 26
     {
27 27
         let buffer = Buffer::new(cx, &[], 0);
28
-        check_gl_errors!(cx);
29 28
         cx.bind_buffer(buffer.id());
29
+        check_gl_errors!(cx);
30 30
 
31 31
         let mut program = Program::new(
32 32
             cx,
@@ -52,8 +52,6 @@ impl MercatorTileLayer {
52 52
             &VertexAttribParams::new(4, 8, 4)
53 53
         );
54 54
 
55
-        check_gl_errors!(cx);
56
-
57 55
         MercatorTileLayer {
58 56
             program,
59 57
             buffer,

+ 0
- 2
src/ortho_tile_layer.rs View File

@@ -75,8 +75,6 @@ impl OrthoTileLayer {
75 75
             &VertexAttribParams::new(4, 9, 5)
76 76
         );
77 77
 
78
-        check_gl_errors!(cx);
79
-
80 78
         OrthoTileLayer {
81 79
             program,
82 80
             buffer,