backend_test: make mingw with SDL have console output

This commit is contained in:
Victor Bombi
2020-10-18 19:32:26 +02:00
parent bd89e83f70
commit 5bd8981f19
2 changed files with 5 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ SDL_Window *window = NULL;
int main(int argc, char* argv[])
{
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
SDL_Log("failed to init: %s", SDL_GetError());
return -1;
@@ -69,7 +69,7 @@ int main(int argc, char* argv[])
}
// check opengl version sdl uses
//SDL_Log("opengl version: %s", (char*)glGetString(GL_VERSION));
SDL_Log("opengl version: %s", (char*)glGetString(GL_VERSION));
// setup imgui
igCreateContext(NULL);