check glDebugMessageCallback
This commit is contained in:
@@ -387,6 +387,8 @@ void App::upload(std::string filename, std::string name, std::function<void(floa
|
|||||||
void App::init()
|
void App::init()
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
if (glDebugMessageCallback)
|
||||||
|
{
|
||||||
static CONSOLE_SCREEN_BUFFER_INFO info;
|
static CONSOLE_SCREEN_BUFFER_INFO info;
|
||||||
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &info);
|
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &info);
|
||||||
// colors: http://stackoverflow.com/questions/4053837/colorizing-text-in-the-console-with-c
|
// colors: http://stackoverflow.com/questions/4053837/colorizing-text-in-the-console-with-c
|
||||||
@@ -413,6 +415,7 @@ void App::init()
|
|||||||
}, nullptr);
|
}, nullptr);
|
||||||
glEnable(GL_DEBUG_OUTPUT);
|
glEnable(GL_DEBUG_OUTPUT);
|
||||||
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
|
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LOG("GL version: %s", glGetString(GL_VERSION));
|
LOG("GL version: %s", glGetString(GL_VERSION));
|
||||||
|
|||||||
@@ -887,6 +887,7 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
LOG("WGL_ARB_create_context not supported");
|
||||||
// If not supported, go fuck yourself we are not gonna support your shitty device
|
// If not supported, go fuck yourself we are not gonna support your shitty device
|
||||||
return -1; // A negative number because you are a negative one
|
return -1; // A negative number because you are a negative one
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
mkdir content
|
mkdir content
|
||||||
xcopy /I /D /Y /S "..\x64\Release\*.dll" content
|
xcopy /I /D /Y /S "..\x64\Release\*.dll" content
|
||||||
xcopy /I /D /Y /S "..\x64\Release\*.pdb" content
|
xcopy /I /D /Y /S "..\x64\Release\*.pdb" content
|
||||||
|
xcopy /I /D /Y /S "..\x64\Release\*.exe" content
|
||||||
robocopy ..\data\ content\data\ /MIR
|
robocopy ..\data\ content\data\ /MIR
|
||||||
for /f %%i in ('git rev-parse --abbrev-ref HEAD') do set BRANCH=%%i
|
for /f %%i in ('git rev-parse --abbrev-ref HEAD') do set BRANCH=%%i
|
||||||
for /f %%i in ('git log "--pretty=format:%%h" -n 1') do set HASH=%%i
|
for /f %%i in ('git log "--pretty=format:%%h" -n 1') do set HASH=%%i
|
||||||
@@ -10,6 +11,6 @@ for /f %%i in ('git describe --tags "--abbrev=0"') do set TAG=%%i
|
|||||||
set VERSION=%TAG%.%COUNT% (%HASH%-%BRANCH%)
|
set VERSION=%TAG%.%COUNT% (%HASH%-%BRANCH%)
|
||||||
echo Building version %VERSION%
|
echo Building version %VERSION%
|
||||||
set /p ID=<steamid.txt
|
set /p ID=<steamid.txt
|
||||||
steamcmd.exe +login %ID% +drm_wrap 954880 "%~dp0..\x64\Release\PanoPainter.exe" "%~dp0content\PanoPainter.exe" drmtoolp 0 +run_app_build -desc "%VERSION%" "%~dp0scripts\app_build_954880.vdf" +quit
|
steamcmd.exe +login %ID% +run_app_build -desc "%VERSION%" "%~dp0scripts\app_build_954880.vdf" +quit
|
||||||
7z.exe a "PanoPainter-Steam-%VERSION%.zip" content\*
|
7z.exe a "PanoPainter-Steam-%VERSION%.zip" content\*
|
||||||
pause
|
pause
|
||||||
Reference in New Issue
Block a user