Qt/win32: Fix compiling opengl driver.

This commit is contained in:
BearOso 2025-06-13 20:15:53 -05:00
parent 84e72a4025
commit a93dd67c51
2 changed files with 3 additions and 8 deletions

View File

@ -4,8 +4,8 @@
For further information, consult the LICENSE file in the root directory.
\*****************************************************************************/
#ifndef __WGL_CONTEXT_HPP
#define __WGL_CONTEXT_HPP
#pragma once
#include <glad/wgl.h>
#include "opengl_context.hpp"
@ -30,5 +30,3 @@ class WGLContext : public OpenGLContext
int version_major;
int version_minor;
};
#endif

View File

@ -155,7 +155,7 @@ else()
endif()
find_package(SDL3 QUIET)
if (SDL3_FOUND AND (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows"))
if (SDL3_FOUND)
message("Using system SDL3.")
list(APPEND LIBS SDL3::SDL3)
list(APPEND INCLUDES ${SDL3_INCLUDE_DIRS})
@ -183,9 +183,6 @@ endif()
list(APPEND DEFINES SDL_MAIN_HANDLED)
list(APPEND PLATFORM_SOURCES ../external/fmt/src/format.cc)
list(APPEND INCLUDES ../external/fmt/include)
list(APPEND QT_GUI_SOURCES
src/main.cpp
src/EmuApplication.cpp