diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-14 10:52:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-14 10:52:46 +0400 |
commit | 7aeadf2baa89aef3775fdf47efde77b76ec601a9 (patch) | |
tree | a97ad45c141d3a018186bb0920f8d6dd81907e80 /source/blender | |
parent | e3fda550ba4aa784130d2e40ef3c6c9f262d1379 (diff) |
typo in gpu_extensions.c, removed unused function
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 2 | ||||
-rw-r--r-- | source/blender/python/api2_2x/sceneRender.c | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index 70192f44ceb..4984e043031 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -746,7 +746,7 @@ GPUShader *GPU_shader_create(const char *vertexcode, const char *fragcode, /*GPU glGetObjectParameterivARB(shader->object, GL_OBJECT_LINK_STATUS_ARB, &status); if (!status) { glGetInfoLogARB(shader->object, sizeof(log), &length, log); - if (fragecode) shader_print_errors("linking", log, fragcode); + if (fragcode) shader_print_errors("linking", log, fragcode); else if (vertexcode) shader_print_errors("linking", log, vertexcode); else if (libcode) shader_print_errors("linking", log, libcode); diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c index dce9231cce5..17c1c497061 100644 --- a/source/blender/python/api2_2x/sceneRender.c +++ b/source/blender/python/api2_2x/sceneRender.c @@ -925,13 +925,6 @@ static PyObject *RenderData_getBorder( BPy_RenderData * self ) self->renderContext->border.ymax ); } -static PyObject *RenderData_EnableGammaCorrection( BPy_RenderData * self, - PyObject * args ) -{ - return M_Render_BitToggleInt( args, R_GAMMA, - &self->renderContext->mode ); -} - static PyObject *RenderData_GaussFilterSize( BPy_RenderData * self, PyObject * args ) { return M_Render_GetSetAttributeFloat( args, |