init log before everything else, use WMI to read machine and system info, rtt fixed on Samsung A3, try to create different EGL context config
This commit is contained in:
@@ -442,10 +442,12 @@ void App::initLayout()
|
||||
LOG("initializing layout completed");
|
||||
}
|
||||
|
||||
void App::init()
|
||||
void App::initLog()
|
||||
{
|
||||
LogRemote::I.start();
|
||||
|
||||
}
|
||||
void App::init()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
static CONSOLE_SCREEN_BUFFER_INFO info;
|
||||
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &info);
|
||||
@@ -465,7 +467,7 @@ void App::init()
|
||||
LOG("OPENGL: %.*s", length, message);
|
||||
FlushConsoleInputBuffer(GetStdHandle(STD_OUTPUT_HANDLE));
|
||||
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), info.wAttributes);
|
||||
// __debugbreak();
|
||||
__debugbreak();
|
||||
}
|
||||
}, nullptr);
|
||||
glEnable(GL_DEBUG_OUTPUT);
|
||||
@@ -482,6 +484,14 @@ void App::init()
|
||||
LOG("GL version: %s", glGetString(GL_VERSION));
|
||||
LOG("GL vendor: %s", glGetString(GL_VENDOR));
|
||||
LOG("GL renderer: %s", glGetString(GL_RENDERER));
|
||||
|
||||
GLint n_exts;
|
||||
glGetIntegerv(GL_NUM_EXTENSIONS, &n_exts);
|
||||
for (int i = 0; i < n_exts; i++)
|
||||
{
|
||||
LOG("%s", glGetStringi(GL_EXTENSIONS, i));
|
||||
}
|
||||
|
||||
LOG("Screen Resolution: %dx%d", (int)width, (int)height);
|
||||
|
||||
zoom = ceilf(width / 1000.f);
|
||||
|
||||
Reference in New Issue
Block a user