Init: Print various GL implementation strings
This commit is contained in:
parent
6b20147a72
commit
1e98413a7e
17
src/main.cpp
17
src/main.cpp
|
@ -58,6 +58,21 @@ rgssThreadError(RGSSThreadData *rtData, const QByteArray &msg)
|
||||||
rtData->rqTermAck = true;
|
rtData->rqTermAck = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline const char*
|
||||||
|
glGetStringInt(GLenum name)
|
||||||
|
{
|
||||||
|
return (const char*) glGetString(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
printGLInfo()
|
||||||
|
{
|
||||||
|
qDebug() << "GL Vendor :" << glGetStringInt(GL_VENDOR);
|
||||||
|
qDebug() << "GL Renderer :" << glGetStringInt(GL_RENDERER);
|
||||||
|
qDebug() << "GL Version :" << glGetStringInt(GL_VERSION);
|
||||||
|
qDebug() << "GLSL Version :" << glGetStringInt(GL_SHADING_LANGUAGE_VERSION);
|
||||||
|
}
|
||||||
|
|
||||||
int rgssThreadFun(void *userdata)
|
int rgssThreadFun(void *userdata)
|
||||||
{
|
{
|
||||||
RGSSThreadData *threadData = static_cast<RGSSThreadData*>(userdata);
|
RGSSThreadData *threadData = static_cast<RGSSThreadData*>(userdata);
|
||||||
|
@ -90,6 +105,8 @@ int rgssThreadFun(void *userdata)
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
SDL_GL_SwapWindow(win);
|
SDL_GL_SwapWindow(win);
|
||||||
|
|
||||||
|
printGLInfo();
|
||||||
|
|
||||||
/* Check for required GL version */
|
/* Check for required GL version */
|
||||||
if (!GLEW_VERSION_2_0)
|
if (!GLEW_VERSION_2_0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue