diff --git a/source/graphics/MapReader.cpp b/source/graphics/MapReader.cpp index 46e1c5530f..5230855faf 100644 --- a/source/graphics/MapReader.cpp +++ b/source/graphics/MapReader.cpp @@ -1454,9 +1454,7 @@ int CMapReader::ParseEnvironment() // If we have graphics, get rest of settings if (pWaterMan) { - std::wstring waterType; // TODO: Water type not implemented - //GET_ENVIRONMENT_PROPERTY(waterBodyObj.get(), Type, waterType) GET_ENVIRONMENT_PROPERTY(waterBodyObj.get(), Colour, pWaterMan->m_WaterColor) GET_ENVIRONMENT_PROPERTY(waterBodyObj.get(), Shininess, pWaterMan->m_Shininess) diff --git a/source/gui/GUItext.cpp b/source/gui/GUItext.cpp index e1cf5e0eef..d3abbd7a80 100644 --- a/source/gui/GUItext.cpp +++ b/source/gui/GUItext.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2013 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -58,10 +58,6 @@ void CGUIString::GenerateTextCall(SFeedback &Feedback, std::vector::const_iterator itTextChunk; for (itTextChunk=m_TextChunks.begin(); itTextChunk!=m_TextChunks.end(); ++itTextChunk) { - // - GL - Temp - TextChunk tc = *itTextChunk; - // -- GL - // Get the area that is overlapped by both the TextChunk and // by the from/to inputted. int _from, _to; diff --git a/source/renderer/TerrainRenderer.cpp b/source/renderer/TerrainRenderer.cpp index 1eb6bfaf43..1e30ceaa67 100644 --- a/source/renderer/TerrainRenderer.cpp +++ b/source/renderer/TerrainRenderer.cpp @@ -712,6 +712,7 @@ bool TerrainRenderer::RenderFancyWater(const CShaderDefines& context, ShadowMap* glGenTextures(1, (GLuint*)&depthTex); WaterMgr->m_depthTT = depthTex; glBindTexture(GL_TEXTURE_2D, WaterMgr->m_depthTT); + // TODO: use POT texture glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT32, g_Renderer.GetWidth(), g_Renderer.GetHeight(), 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE,NULL); } @@ -762,9 +763,7 @@ bool TerrainRenderer::RenderFancyWater(const CShaderDefines& context, ShadowMap* WaterMgr->m_waveTT = renderedTexture; glBindTexture(GL_TEXTURE_2D, WaterMgr->m_waveTT); - int size = (int)round_up_to_pow2((unsigned)g_Renderer.GetHeight()); - if(size > g_Renderer.GetHeight()) size /= 2; - + // TODO: use POT texture glTexImage2D(GL_TEXTURE_2D, 0,GL_RGBA, (float)g_Renderer.GetWidth(), (float)g_Renderer.GetHeight(), 0,GL_RGBA, GL_UNSIGNED_BYTE, 0); } diff --git a/source/simulation2/system/ComponentManagerSerialization.cpp b/source/simulation2/system/ComponentManagerSerialization.cpp index d514df2925..c8c7b9d343 100644 --- a/source/simulation2/system/ComponentManagerSerialization.cpp +++ b/source/simulation2/system/ComponentManagerSerialization.cpp @@ -54,7 +54,7 @@ bool CComponentManager::DumpDebugState(std::ostream& stream, bool includeDebugIn // We want the output to be grouped by entity ID, so invert the CComponentManager data structures std::map > components; - std::map names; + //std::map names; std::map >::const_iterator ctit = m_ComponentsByTypeId.begin(); for (; ctit != m_ComponentsByTypeId.end(); ++ctit) diff --git a/source/tools/atlas/GameInterface/MessagePasserImpl.cpp b/source/tools/atlas/GameInterface/MessagePasserImpl.cpp index 9f9e04b071..7f324a0117 100644 --- a/source/tools/atlas/GameInterface/MessagePasserImpl.cpp +++ b/source/tools/atlas/GameInterface/MessagePasserImpl.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2013 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -165,8 +165,7 @@ void MessagePasserImpl::Query(QueryMessage* qry, void(* UNUSED(timeoutCallback) // while (0 != (err = sem_timedwait(psem, &abs_timeout))) // #endif - int err; - while (0 != (err = sem_wait(m_Semaphore))) + while (0 != sem_wait(m_Semaphore)) { // If timed out, call callback and try again // if (errno == ETIMEDOUT)