BGE: Display Hardware infos only in standalone.

This patch moves the PrintHardwareInfo() function in standalone only, not in embedded. Why? Because you can need this infos for debugging
purpose in "compiled" blender files but it was boring to have it displayed each time you launched embedded. So you can have this infos when you
click standalone or when you run your executable app from a console.

Reviewers: moguri, kupoman, panzergame.
This commit is contained in:
Ulysse Martin 2016-07-01 11:53:09 +00:00 committed by Porteries Tristan
parent c08f0ceeb7
commit dbd38e969f
2 changed files with 3 additions and 3 deletions

View File

@ -633,7 +633,9 @@ bool GPG_Application::initEngine(GHOST_IWindow* window, const int stereoMode)
if (!m_rasterizer)
goto initFailed;
m_rasterizer->PrintHardwareInfo();
// create the inputdevices
m_keyboard = new GPG_KeyboardDevice();
if (!m_keyboard)

View File

@ -141,8 +141,6 @@ RAS_OpenGLRasterizer::RAS_OpenGLRasterizer(RAS_ICanvas* canvas, RAS_STORAGE_TYPE
glGetIntegerv(GL_MAX_LIGHTS, (GLint *) &m_numgllights);
if (m_numgllights < 8)
m_numgllights = 8;
PrintHardwareInfo();
}