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:
authorMike Erwin <significant.bit@gmail.com>2016-10-10 08:08:49 +0300
committerMike Erwin <significant.bit@gmail.com>2016-10-10 08:19:10 +0300
commit33ef28068a87239f5d4e7170b2fcf7eb704da716 (patch)
treecb3710a5d5991f95955e89075c370ce04b6777b4 /source/gameengine/BlenderRoutines
parent9ea71bc674130289d4f647c12f60ef51838665d9 (diff)
BGE: remove calls to GLSL support query (it's always supported)
Reworked logic in the few places that still called this. Deleted the "GLSL not supported" fallbacks. Also removed some nearby checks for ARB_multitexture and OpenGL 1.1. Blender 2.77 removed checks like this, but game engine still has some.
Diffstat (limited to 'source/gameengine/BlenderRoutines')
-rw-r--r--source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
index 91683f4d6e7..d7fe8d8ce59 100644
--- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
+++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
@@ -465,19 +465,9 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
if (always_use_expand_framing)
sceneconverter->SetAlwaysUseExpandFraming(true);
- bool usemat = false, useglslmat = false;
+ sceneconverter->SetMaterials(true);
- if (GLEW_ARB_multitexture && GLEW_VERSION_1_1)
- usemat = true;
-
- if (GPU_glsl_support())
- useglslmat = true;
- else if (gs.matmode == GAME_MAT_GLSL)
- usemat = false;
-
- if (usemat)
- sceneconverter->SetMaterials(true);
- if (useglslmat && (gs.matmode == GAME_MAT_GLSL))
+ if (gs.matmode == GAME_MAT_GLSL)
sceneconverter->SetGLSLMaterials(true);
if (scene->gm.flag & GAME_NO_MATERIAL_CACHING)
sceneconverter->SetCacheMaterials(false);