mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01:00
citra-room: Use the default OpenGL loader instead of SDL_GL_GetProcAddress
Fixes #3538
This commit is contained in:
parent
39fce60145
commit
cef88965d7
@ -12,7 +12,7 @@ target_link_libraries(citra-room PRIVATE glad)
|
|||||||
if (MSVC)
|
if (MSVC)
|
||||||
target_link_libraries(citra-room PRIVATE getopt)
|
target_link_libraries(citra-room PRIVATE getopt)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(citra-room PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads)
|
target_link_libraries(citra-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
install(TARGETS citra-room RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
install(TARGETS citra-room RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
||||||
|
@ -8,8 +8,6 @@
|
|||||||
#include <regex>
|
#include <regex>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#define SDL_MAIN_HANDLED
|
|
||||||
#include <SDL.h>
|
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
@ -60,7 +58,7 @@ int main(int argc, char** argv) {
|
|||||||
char* endarg;
|
char* endarg;
|
||||||
|
|
||||||
// This is just to be able to link against core
|
// This is just to be able to link against core
|
||||||
gladLoadGLLoader(static_cast<GLADloadproc>(SDL_GL_GetProcAddress));
|
gladLoadGL();
|
||||||
|
|
||||||
std::string room_name;
|
std::string room_name;
|
||||||
std::string password;
|
std::string password;
|
||||||
|
Loading…
Reference in New Issue
Block a user