Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/BlenderRoutines/KX_BlenderGL.cpp')
-rw-r--r--source/gameengine/BlenderRoutines/KX_BlenderGL.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
index 7a99a4a1419..19a84acf027 100644
--- a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
+++ b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
@@ -95,34 +95,34 @@ void DisableForText()
{
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); /* needed for texture fonts otherwise they render as wireframe */
- if(glIsEnabled(GL_BLEND)) glDisable(GL_BLEND);
- if(glIsEnabled(GL_ALPHA_TEST)) glDisable(GL_ALPHA_TEST);
+ if (glIsEnabled(GL_BLEND)) glDisable(GL_BLEND);
+ if (glIsEnabled(GL_ALPHA_TEST)) glDisable(GL_ALPHA_TEST);
- if(glIsEnabled(GL_LIGHTING)) {
+ if (glIsEnabled(GL_LIGHTING)) {
glDisable(GL_LIGHTING);
glDisable(GL_COLOR_MATERIAL);
}
- if(GLEW_ARB_multitexture) {
- for(int i=0; i<MAXTEX; i++) {
+ if (GLEW_ARB_multitexture) {
+ for (int i=0; i<MAXTEX; i++) {
glActiveTextureARB(GL_TEXTURE0_ARB+i);
- if(GLEW_ARB_texture_cube_map)
- if(glIsEnabled(GL_TEXTURE_CUBE_MAP_ARB))
+ if (GLEW_ARB_texture_cube_map)
+ if (glIsEnabled(GL_TEXTURE_CUBE_MAP_ARB))
glDisable(GL_TEXTURE_CUBE_MAP_ARB);
- if(glIsEnabled(GL_TEXTURE_2D))
+ if (glIsEnabled(GL_TEXTURE_2D))
glDisable(GL_TEXTURE_2D);
}
glActiveTextureARB(GL_TEXTURE0_ARB);
}
else {
- if(GLEW_ARB_texture_cube_map)
- if(glIsEnabled(GL_TEXTURE_CUBE_MAP_ARB))
+ if (GLEW_ARB_texture_cube_map)
+ if (glIsEnabled(GL_TEXTURE_CUBE_MAP_ARB))
glDisable(GL_TEXTURE_CUBE_MAP_ARB);
- if(glIsEnabled(GL_TEXTURE_2D))
+ if (glIsEnabled(GL_TEXTURE_2D))
glDisable(GL_TEXTURE_2D);
}
}
@@ -261,7 +261,7 @@ void BL_MakeScreenShot(ScrArea *curarea, const char* filename)
int dumpsx, dumpsy;
dumprect= screenshot(curarea, &dumpsx, &dumpsy);
- if(dumprect) {
+ if (dumprect) {
ImBuf *ibuf;
BLI_path_abs(path, G.main->name);
/* BKE_add_image_extension() checks for if extension was already set */