diff options
| author | Léo Lam <leo@leolam.fr> | 2020-12-02 20:45:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-02 20:45:27 +0100 |
| commit | b148b56fba41e2beb81c61e4d84bbecad0f33a53 (patch) | |
| tree | 9588abb91d50ca660e9f832eb8d751be73a8413d /Source/Core/VideoBackends/OGL/main.cpp | |
| parent | 00f2e0e494f644d0a559dc92f9eb94be0fab6913 (diff) | |
| parent | 139d4fc76e4ddf45179ca5ec5e42c52ef513ea4d (diff) | |
Merge pull request #9304 from lioncash/panic
General: Convert PanicAlerts over to fmt equivalent
Diffstat (limited to 'Source/Core/VideoBackends/OGL/main.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp index d1e71d55e6..864de57624 100644 --- a/Source/Core/VideoBackends/OGL/main.cpp +++ b/Source/Core/VideoBackends/OGL/main.cpp @@ -123,15 +123,15 @@ bool VideoBackend::InitializeGLExtensions(GLContext* context) { // OpenGL 2.0 is required for all shader based drawings. There is no way to get this by // extensions - PanicAlert("GPU: OGL ERROR: Does your video card support OpenGL 2.0?"); + PanicAlertFmtT("GPU: OGL ERROR: Does your video card support OpenGL 2.0?"); return false; } if (GLExtensions::Version() < 300) { // integer vertex attributes require a gl3 only function - PanicAlert("GPU: OGL ERROR: Need OpenGL version 3.\n" - "GPU: Does your video card support OpenGL 3?"); + PanicAlertFmtT("GPU: OGL ERROR: Need OpenGL version 3.\n" + "GPU: Does your video card support OpenGL 3?"); return false; } @@ -147,9 +147,9 @@ bool VideoBackend::FillBackendInfo() glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &numvertexattribs); if (numvertexattribs < 16) { - PanicAlert("GPU: OGL ERROR: Number of attributes %d not enough.\n" - "GPU: Does your video card support OpenGL 2.x?", - numvertexattribs); + PanicAlertFmtT("GPU: OGL ERROR: Number of attributes {0} not enough.\n" + "GPU: Does your video card support OpenGL 2.x?", + numvertexattribs); return false; } @@ -159,7 +159,7 @@ bool VideoBackend::FillBackendInfo() g_Config.backend_info.MaxTextureSize = static_cast<u32>(max_texture_size); if (max_texture_size < 1024) { - PanicAlert("GL_MAX_TEXTURE_SIZE too small at %i - must be at least 1024.", max_texture_size); + PanicAlertFmtT("GL_MAX_TEXTURE_SIZE is {0} - must be at least 1024.", max_texture_size); return false; } @@ -193,7 +193,7 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi) !g_renderer->Initialize() || !g_framebuffer_manager->Initialize() || !g_texture_cache->Initialize()) { - PanicAlert("Failed to initialize renderer classes"); + PanicAlertFmtT("Failed to initialize renderer classes"); Shutdown(); return false; } |
