0ad/source/graphics
Ykkrosh 21f3be7df5 Always select a texture unit before calling glEnable(GL_TEXTURE_2D).
Without this, some code will enable (and set other parameters for)
whatever random texture unit the previous stage had selected. This can
break any fixed-function rendering, since either it will not have
enabled the correct texture unit, or its correct setup will be
interfered with by another texture unit that shouldn't be enabled. (This
doesn't affect ARB/GLSL shader rendering, since they don't care about
the enabled state, but the GUI (and some debug things) are still FFP in
the default ARB mode.)

Fixes #2833 (in which the fancy water shader selected texture units 5/6,
which then got enabled, and remained enabled forever).

This was SVN commit r16372.
2015-02-21 21:40:10 +00:00
..
scripting Automatically convert all CLogger format strings from wchar_t* to char*. 2015-01-22 20:31:30 +00:00
tests CLogger: Use cppformat instead of sys_vswprintf. 2015-01-22 20:30:05 +00:00
Camera.cpp Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
Camera.h Fix build warnings. Patch by Markus. Refs #1851. 2013-06-11 00:05:57 +00:00
CinemaTrack.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
CinemaTrack.h Added elapsed real time (as opposed to elapsed simulation time) to MT_Interpolate messages. Fixes leftover TODO from #824. Refs #824. 2012-06-06 19:37:03 +00:00
ColladaManager.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
ColladaManager.h Split skeleton definitions into multiple files, adds hotloading support for skeleton files. Fixes #190. 2013-07-08 20:25:06 +00:00
Color.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
Color.h Simplify the overly-complex CppDoc-breaking file headers 2009-04-18 17:51:05 +00:00
Decal.cpp Fix crash when setting rally point 2013-09-29 14:02:47 +00:00
Decal.h MapReader: Load terrain before entities. 2014-06-01 18:08:11 +00:00
Entity.h Attempts to fix random map OOS errors by avoiding parsing data to floats (uses CFixedVector3D instead). See #977. 2011-09-26 21:36:33 +00:00
Font.cpp Optimise glyph lookup in text renderer 2013-10-18 15:56:12 +00:00
Font.h Optimise rendering of scrollable text boxes by clipping 2013-10-18 16:05:02 +00:00
FontManager.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
FontManager.h Use CStrIntern for font names to reduce lookup cost 2013-10-18 16:15:42 +00:00
FontMetrics.cpp Use CStrIntern for font names to reduce lookup cost 2013-10-18 16:15:42 +00:00
FontMetrics.h Use CStrIntern for font names to reduce lookup cost 2013-10-18 16:15:42 +00:00
Frustum.cpp Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
Frustum.h Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
GameView.cpp Move back the computation of most of the visibilities from JS to engine, to improve performance. 2015-01-30 15:28:06 +00:00
GameView.h Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
HeightMipmap.cpp Texture system refactoring and cleanup, fixes #2455, patch by IronNerd. 2014-03-13 02:37:05 +00:00
HeightMipmap.h Compute camera height and zoom limits based on smoothed terrain heightmap. Fixes #794, based on patch by Dietger. 2012-04-18 20:39:00 +00:00
HFTracer.cpp Fix non-PCH build. 2014-07-06 16:35:41 +00:00
HFTracer.h Optimise silhouette rendering. 2014-07-03 01:00:25 +00:00
LightEnv.cpp Fixes MSVC warnings of truncation from double to float 2012-10-30 02:03:40 +00:00
LightEnv.h Postproc manager 2012-10-15 10:34:23 +00:00
LOSTexture.cpp Automatically convert all CLogger format strings from wchar_t* to char*. 2015-01-22 20:31:30 +00:00
LOSTexture.h Allow enabling the post processing filters during a game. 2014-10-05 20:50:10 +00:00
MapGenerator.cpp SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
MapGenerator.h SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
MapIO.h Implements random map system, fixes #6. 2011-03-22 01:34:45 +00:00
MapReader.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
MapReader.h SpiderMonkey 31 upgrade 2015-01-24 14:46:52 +00:00
MapWriter.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
MapWriter.h Remove inconsistent checks for pSimulation2 when saving maps and ensure that it is set. 2014-07-01 19:00:41 +00:00
Material.cpp Fix some Clang warnings about unused private members 2013-10-19 00:53:58 +00:00
Material.h Fix some Clang warnings about unused private members 2013-10-19 00:53:58 +00:00
MaterialManager.cpp Remove useless parameter from CFG_GET_VALUE. 2014-11-17 23:29:49 +00:00
MaterialManager.h ao/parallax/normal/specular/emissive mapping; windy trees; time manager; render queries; conditional defines 2012-08-06 19:10:47 +00:00
MeshManager.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
MeshManager.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
MiniPatch.cpp # Handle terrain passability and movement costs in pathfinder. 2010-05-27 23:31:03 +00:00
MiniPatch.h # Add new texture loading system with automatic compression. 2010-09-10 21:02:10 +00:00
Model.cpp Automatically convert all CLogger format strings from wchar_t* to char*. 2015-01-22 20:31:30 +00:00
Model.h Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
ModelAbstract.cpp Automatically convert all CLogger format strings from wchar_t* to char*. 2015-01-22 20:31:30 +00:00
ModelAbstract.h Pretty unit selection overlay rings. Fixes #824. 2012-04-22 04:04:02 +00:00
ModelDef.cpp Fix non-SSE x86 builds 2013-10-03 18:22:10 +00:00
ModelDef.h Fix non-SSE x86 builds 2013-10-03 18:22:10 +00:00
ObjectBase.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
ObjectBase.h add the ability to exclude props from the selection size + add aura visualisation rings again 2014-01-04 10:41:32 +00:00
ObjectEntry.cpp Convert wchar_t*/wstring arguments to UTF-8 strings in CLogger messages. 2015-01-22 20:37:38 +00:00
ObjectEntry.h Fixes assignment operator warning on MSVC by making CObjectEntry NONCOPYABLE, refs #2033 2013-07-12 03:46:40 +00:00
ObjectManager.cpp Convert wchar_t*/wstring arguments to UTF-8 strings in CLogger messages. 2015-01-22 20:37:38 +00:00
ObjectManager.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
Overlay.cpp Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
Overlay.h Optimise silhouette rendering. 2014-07-03 01:00:25 +00:00
ParticleEmitter.cpp Optimise VBO updates. 2015-01-28 00:48:00 +00:00
ParticleEmitter.h Optimise VBO updates. 2015-01-28 00:48:00 +00:00
ParticleEmitterType.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
ParticleEmitterType.h Some additions to the particle system: 2013-12-04 17:21:59 +00:00
ParticleManager.cpp Added elapsed real time (as opposed to elapsed simulation time) to MT_Interpolate messages. Fixes leftover TODO from #824. Refs #824. 2012-06-06 19:37:03 +00:00
ParticleManager.h Added elapsed real time (as opposed to elapsed simulation time) to MT_Interpolate messages. Fixes leftover TODO from #824. Refs #824. 2012-06-06 19:37:03 +00:00
Patch.cpp Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
Patch.h Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
RenderableObject.h Pretty unit selection overlay rings. Fixes #824. 2012-04-22 04:04:02 +00:00
SColor.h Add GPL header 2009-04-18 17:00:33 +00:00
ShaderDefines.cpp Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount. 2014-07-02 22:36:45 +00:00
ShaderDefines.h Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount. 2014-07-02 22:36:45 +00:00
ShaderManager.cpp Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ShaderManager.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ShaderProgram.cpp Fix build error in GLES configurations 2015-01-23 20:54:14 +00:00
ShaderProgram.h Optimise silhouette rendering. 2014-07-03 01:00:25 +00:00
ShaderProgramFFP.cpp Always select a texture unit before calling glEnable(GL_TEXTURE_2D). 2015-02-21 21:40:10 +00:00
ShaderProgramPtr.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ShaderTechnique.cpp Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount. 2014-07-02 22:36:45 +00:00
ShaderTechnique.h Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount. 2014-07-02 22:36:45 +00:00
SkeletonAnim.h apply patch from ticket 1944 added sound attribute to animations to optionally differentiate sound starting point 2013-07-02 11:44:46 +00:00
SkeletonAnimDef.cpp huge cleanup and conversion of most string handling (especially paths) to unicode 2009-11-03 21:46:35 +00:00
SkeletonAnimDef.h huge cleanup and conversion of most string handling (especially paths) to unicode 2009-11-03 21:46:35 +00:00
SkeletonAnimManager.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
SkeletonAnimManager.h replace set/map with boost::unordered_* to reduce the number of expensive filesystem::basic_path::operator< calls based on a patch by ortalo (thanks!) 2011-02-19 21:24:39 +00:00
Terrain.cpp Fixes possible overflow in terrain position/normal calculation, based on patch by sanderd17. Fixes #1986 2013-06-25 00:57:42 +00:00
Terrain.h Compute camera height and zoom limits based on smoothed terrain heightmap. Fixes #794, based on patch by Dietger. 2012-04-18 20:39:00 +00:00
TerrainProperties.cpp Convert wchar_t*/wstring arguments to UTF-8 strings in CLogger messages. 2015-01-22 20:37:38 +00:00
TerrainProperties.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
TerrainTextureEntry.cpp Convert wchar_t*/wstring arguments to UTF-8 strings in CLogger messages. 2015-01-22 20:37:38 +00:00
TerrainTextureEntry.h Terrain/decal materials (includes triplanar/normal/specular/emissive mapping); custom alphamaps 2012-08-07 18:21:16 +00:00
TerrainTextureManager.cpp Disable "assignment operator could not be generated" warning globally on Windows, since it's never useful. 2015-01-22 21:09:33 +00:00
TerrainTextureManager.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
TerritoryBoundary.cpp More build fixes for FreeBSD. 2012-01-31 00:06:56 +00:00
TerritoryBoundary.h More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
TerritoryTexture.cpp Move the minimap to only use the shader pipeline. Should make it OpenGL ES compatible (untested). 2014-07-14 17:15:22 +00:00
TerritoryTexture.h Move the minimap to only use the shader pipeline. Should make it OpenGL ES compatible (untested). 2014-07-14 17:15:22 +00:00
TextRenderer.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
TextRenderer.h CLogger: Use cppformat instead of sys_vswprintf. 2015-01-22 20:30:05 +00:00
Texture.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
TextureConverter.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
TextureConverter.h Support 8bpp textures 2013-10-18 15:36:31 +00:00
TextureManager.cpp Provide explicit spezializations of hash_value for CTexturePtr and CTextureProperties. Fixes #3036. 2015-02-06 02:03:20 +00:00
TextureManager.h Provide explicit spezializations of hash_value for CTexturePtr and CTextureProperties. Fixes #3036. 2015-02-06 02:03:20 +00:00
Unit.cpp Change some size() > 0 to Based on patches by kuranes and Markus. Refs #1852, #1923. 2013-05-21 22:11:47 +00:00
Unit.h Adds building previews that rise during construction, fixes #1174, refs #21. 2013-02-03 02:08:20 +00:00
UnitAnimation.cpp Minor optimisation for non-animated units. 2014-06-01 18:25:20 +00:00
UnitAnimation.h Minor optimisation for non-animated units. 2014-06-01 18:25:20 +00:00
UnitManager.cpp Adds multiple entity selection to Atlas (including move/delete). Fixes #678. 2012-02-27 05:32:35 +00:00
UnitManager.h Adds multiple entity selection to Atlas (including move/delete). Fixes #678. 2012-02-27 05:32:35 +00:00