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:
parent
c08f0ceeb7
commit
dbd38e969f
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue