]> Dogcows Code - chaz/rasterize/blobdiff - scene.c
add phong interpolation (lighting)
[chaz/rasterize] / scene.c
diff --git a/scene.c b/scene.c
index be185113988fc11ecc7e840763d22f9aa46c14f8..326091fea49b0b50e5a42f3d167c0af666f91d3b 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -100,13 +100,13 @@ typedef struct _group _group_t;
  */
 static int _group_try_read_cache(const char* filename, list_t** l)
 {
+    int     count = 0;
     char*   cachename  = mem_strcat(".", filename);
     FILE*   file = fopen(cachename, "rb");
     if (file == NULL) {
         goto fail;
     }
 
-    int count = 0;
     _CHECK_IO(fread(&count, sizeof(count), 1, file));
 
     float x1, y1, z1, x2, y2, z2, x3, y3, z3;
This page took 0.016906 seconds and 4 git commands to generate.