se BLI_snprintf() for msvc compat, cleanup CMake file, some bad comments left in.
[blender-staging.git] / source / blender / gpu / intern / gpu_extensions.c
index c5cfbea9b5c0e7e4757550afebe0cb2c9e09e01d..453eb99511311cf4aaa45883c7233d0299bc94d5 100644 (file)
@@ -258,16 +258,13 @@ static void GPU_print_framebuffer_error(GLenum status, char err_out[256])
        }
 
        if(err_out) {
-               snprintf(err_out, 256, "GPUFrameBuffer: framebuffer incomplete error %d '%s'",
-                       (int)status,
-                       err);
+               BLI_snprintf(err_out, 256, "GPUFrameBuffer: framebuffer incomplete error %d '%s'",
+                       (int)status, err);
        }
        else {
                fprintf(stderr, "GPUFrameBuffer: framebuffer incomplete error %d '%s'\n",
-                       (int)status,
-                       err);
+                       (int)status, err);
        }
-
 }
 
 /* GPUTexture */
@@ -349,7 +346,7 @@ static GPUTexture *GPU_texture_create_nD(int w, int h, int n, float *fpixels, in
 
        if (!tex->bindcode) {
                if(err_out) {
-                       snprintf(err_out, 256, "GPUTexture: texture create failed: %d",
+                       BLI_snprintf(err_out, 256, "GPUTexture: texture create failed: %d",
                                (int)glGetError());
                }
                else {