blender/source/gameengine
Thomas Szepe 2b632dd8c2 BGE: Fix T37074: GLSL max texture units limit
Actually for the the amount of GLSL textures units is limited by the amount of multitexture units (GL_MAX_TEXTURE_UNITS_ARB).
Most of the Nvidia graphic cards supports only 4 multitexture units, so Nvidia users can not use more then 4 GLSL textures for a custom shader.
This patch removes this limitation by using GL_MAX_TEXTURE_IMAGE_UNITS_ARB if GLSL is supported, but still limit the amount to the maximum texture limit of 8.

Reviewers: lordloki, agoose77, danielstokes, panzergame, sybren, moguri

Reviewed By: panzergame, sybren, moguri

Projects: #game_engine, #game_rendering

Maniphest Tasks: T37074

Differential Revision: https://developer.blender.org/D1389
2015-07-27 20:34:13 +02:00
..
BlenderRoutines BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
Converter BGE: Fix T35288 Touch/Ray/Mouse sensor and Constraint actuator with material check doesn't work. 2015-07-25 09:43:06 +02:00
Expressions BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
GameLogic BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
GamePlayer Cleanup: quiet warning 2015-07-09 19:33:02 +10:00
Ketsji BGE: Fix T37074: GLSL max texture units limit 2015-07-27 20:34:13 +02:00
Network mathutils: refactor instantiation 2015-01-04 17:43:57 +11:00
Physics Fix compile warning in 04b369 2015-07-25 14:00:46 +02:00
Rasterizer BGE: Fix T19241: draw debug shape with overlay/background scene. 2015-07-27 13:49:06 +02:00
SceneGraph Style Cleanup: remove preprocessor indentation (updated wiki style guide too) 2013-12-22 14:12:19 +11:00
VideoTexture BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
CMakeLists.txt CMake: Enable strict flags for C++ 2015-03-27 18:23:31 +05:00
SConscript BGE: Removing the source files for the PHY interfaces since they just contained virtual destructors. This means we had license and doc blocks for 3 lines of code, which seemed silly. This also means that ge_phys_common no longer needs to be built as a library. I tested this with CMake and SCons using GCC; hopefully this doesn't break other systems. 2013-02-24 07:09:39 +00:00