diff --git a/src/NoteDataUtil.cpp b/src/NoteDataUtil.cpp index 9b5748ce39..6b7f47cba1 100644 --- a/src/NoteDataUtil.cpp +++ b/src/NoteDataUtil.cpp @@ -367,7 +367,7 @@ void NoteDataUtil::GetSMNoteDataString( const NoteData &in, RString &sRet ) { if( m ) sRet.append( 1, ',' ); - sRet += ssprintf(" // measure %d\n", m+1); + sRet += ssprintf(" // measure %d\n", m); NoteType nt = GetSmallestNoteTypeForMeasure( *nd, m ); int iRowSpacing; diff --git a/src/RageDisplay_OGL.cpp b/src/RageDisplay_OGL.cpp index 1856705667..0b47a78bf2 100644 --- a/src/RageDisplay_OGL.cpp +++ b/src/RageDisplay_OGL.cpp @@ -22,6 +22,10 @@ using namespace RageDisplay_Legacy_Helpers; #include +#if defined(WINDOWS) +#include +#endif + #if defined(_MSC_VER) #pragma comment(lib, "opengl32.lib") #pragma comment(lib, "glu32.lib") @@ -743,8 +747,10 @@ RString RageDisplay_Legacy::TryVideoMode( const VideoModeParams &p, bool &bNewDe #if defined(WINDOWS) /* Set vsync the Windows way, if we can. (What other extensions are there * to do this, for other archs?) */ - if (GLEW_WGL_EXT_swap_control) + if( wglewIsSupported("WGL_EXT_swap_control") ) wglSwapIntervalEXT(p.vsync); + else + return RString("The WGL_EXT_swap_control extension is not supported on your computer."); #endif ResolutionChanged(); diff --git a/src/StepMania-net2003.vcproj b/src/StepMania-net2003.vcproj index 9b4c749cc7..4775f452bc 100644 --- a/src/StepMania-net2003.vcproj +++ b/src/StepMania-net2003.vcproj @@ -25,8 +25,8 @@ Name="VCCLCompilerTool" AdditionalOptions="/EHa" Optimization="0" - AdditionalIncludeDirectories=".;vorbis;libjpeg;"ffmpeg\include";est" - PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS,WINDOWS,DEBUG" + AdditionalIncludeDirectories=".;vorbis;libjpeg;"ffmpeg\include";est;"..\extern\glew-1.5.8\include"" + PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS,WINDOWS,DEBUG,GLEW_STATIC" ExceptionHandling="FALSE" BasicRuntimeChecks="3" RuntimeLibrary="2" @@ -109,8 +109,8 @@ cl /Zl /nologo /c verstub.cpp /Fo"$(IntDir)"\ FavorSizeOrSpeed="2" OptimizeForProcessor="2" OptimizeForWindowsApplication="TRUE" - AdditionalIncludeDirectories=".;vorbis;libjpeg;"ffmpeg\include"" - PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS,WINDOWS,RELEASE" + AdditionalIncludeDirectories=".;vorbis;libjpeg;"ffmpeg\include";"..\extern\glew-1.5.8\include"" + PreprocessorDefinitions="WIN32,NDEBUG,_WINDOWS,WINDOWS,RELEASE,GLEW_STATIC" StringPooling="TRUE" MinimalRebuild="FALSE" ExceptionHandling="FALSE" @@ -190,8 +190,8 @@ cl /Zl /nologo /c verstub.cpp /Fo"$(IntDir)"\ Name="VCCLCompilerTool" AdditionalOptions="/EHa" Optimization="0" - AdditionalIncludeDirectories=".;vorbis;libjpeg;"ffmpeg\include"" - PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS,WINDOWS,DEBUG" + AdditionalIncludeDirectories=".;vorbis;libjpeg;"ffmpeg\include";"..\extern\glew-1.5.8\include"" + PreprocessorDefinitions="WIN32,_DEBUG,_WINDOWS,WINDOWS,DEBUG,GLEW_STATIC" ExceptionHandling="FALSE" BasicRuntimeChecks="0" RuntimeLibrary="2" @@ -259,6 +259,19 @@ cl /Zl /nologo /c verstub.cpp /Fo"$(IntDir)"\ + + + + + + + + + + + + + diff --git a/src/StepMania-net2005.vcproj b/src/StepMania-net2005.vcproj index f3776ba489..00fce456ba 100644 --- a/src/StepMania-net2005.vcproj +++ b/src/StepMania-net2005.vcproj @@ -49,8 +49,8 @@ + + + + + + + + + + + + + diff --git a/src/StepMania-net2008.vcproj b/src/StepMania-net2008.vcproj index 0472414bf6..53c1ab9c8a 100644 --- a/src/StepMania-net2008.vcproj +++ b/src/StepMania-net2008.vcproj @@ -50,8 +50,8 @@ + + + + + + + + + + + + + + + + diff --git a/src/arch/LowLevelWindow/LowLevelWindow_Win32.cpp b/src/arch/LowLevelWindow/LowLevelWindow_Win32.cpp index 9a085108b1..cc81bbbb6f 100644 --- a/src/arch/LowLevelWindow/LowLevelWindow_Win32.cpp +++ b/src/arch/LowLevelWindow/LowLevelWindow_Win32.cpp @@ -10,7 +10,7 @@ #include "RageDisplay_OGL_Helpers.h" #include "RageDisplay_OGL.h" -#include +#include static PIXELFORMATDESCRIPTOR g_CurrentPixelFormat; static HGLRC g_HGLRC = NULL; @@ -351,7 +351,7 @@ void RenderTarget_Win32::Create(const RenderTargetParam ¶m, int &iTextureWid GLenum internalformat; GLenum type = param.bWithAlpha? GL_RGBA:GL_RGB; - if( param.bFloat && GLExt.m_bGL_ARB_texture_float ) + if( param.bFloat && GLEW_ARB_texture_float ) internalformat = param.bWithAlpha? GL_RGBA16F_ARB:GL_RGB16F_ARB; else internalformat = param.bWithAlpha? GL_RGBA8:GL_RGB8;