diff options
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 7 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index e72b5bd8961..a96796b95a3 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -1794,17 +1794,18 @@ void GPU_state_init(void) // glDisable(GL_MULTISAMPLE); } +#ifdef DEBUG /* debugging aid */ static void gpu_get_print(const char *name, GLenum type) { - float value[16]; + float value[32]; int a; memset(value, 0, sizeof(value)); glGetFloatv(type, value); printf("%s: ", name); - for (a=0; a<16; a++) + for (a = 0; a < 32; a++) printf("%.2f ", value[a]); printf("\n"); } @@ -2156,4 +2157,4 @@ void GPU_state_print(void) gpu_get_print("GL_ZOOM_X", GL_ZOOM_X); gpu_get_print("GL_ZOOM_Y", GL_ZOOM_Y); } - +#endif diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index 75041055c41..ffd3bba5493 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -1159,9 +1159,9 @@ static const char *gpu_shader_standard_defines(void) /* some useful defines to detect GPU type */ if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_ANY, GPU_DRIVER_ANY)) return "#define GPU_ATI\n"; - else if(GPU_type_matches(GPU_DEVICE_NVIDIA, GPU_OS_ANY, GPU_DRIVER_ANY)) + else if (GPU_type_matches(GPU_DEVICE_NVIDIA, GPU_OS_ANY, GPU_DRIVER_ANY)) return "#define GPU_NVIDIA\n"; - else if(GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_ANY, GPU_DRIVER_ANY)) + else if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_ANY, GPU_DRIVER_ANY)) return "#define GPU_INTEL\n"; return ""; |