Skip to content

Commit

Permalink
Replace placeholder in entry point.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogFeelings committed Sep 26, 2024
1 parent ec3d6dc commit 5f17be8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/EntryPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ auto WINAPI ScreenSaverProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPara
BOOL rendererResult = Renderer::InitRenderer(windowWidth, windowHeight, settings);
if (!rendererResult)
{
CHAR buffer[OPENGL_ERROR_SIZE];
std::snprintf(buffer, OPENGL_ERROR_SIZE, "Error initializing OpenGL renderer.\n%s", "placeholder");
std::string error = "Error initializing OpenGL renderer.\n" + Globals::LastError;

::MessageBox(hWnd, buffer, "Error!", MB_OK | MB_ICONERROR | MB_TOPMOST);
::MessageBox(hWnd, error.c_str(), "Error!", MB_OK | MB_ICONERROR | MB_TOPMOST);

return -1;
}
Expand Down

0 comments on commit 5f17be8

Please sign in to comment.