mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Merge branch '2.6.x' into master
This commit is contained in:
commit
0e06af987d
@ -92,6 +92,5 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
execute_process(COMMAND "${CMAKE_CXX_COMPILER}" "--version" OUTPUT_VARIABLE GCC_COMPILER_VERSION)
|
||||
string(REGEX MATCHALL ".*(tdm[64]*-[1-9]).*" SFML_COMPILER_GCC_TDM "${GCC_COMPILER_VERSION}")
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported compiler")
|
||||
return()
|
||||
message(WARNING "Unrecognized compiler: ${CMAKE_CXX_COMPILER_ID}. Use at your own risk.")
|
||||
endif()
|
||||
|
@ -32,7 +32,7 @@ elseif(SFML_OS_ANDROID)
|
||||
endif()
|
||||
|
||||
# define the path of our additional CMake modules
|
||||
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/")
|
||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules/")
|
||||
|
||||
# set the output directory for SFML libraries
|
||||
set(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib")
|
||||
|
@ -880,6 +880,9 @@ unsigned int Texture::getMaximumSize()
|
||||
|
||||
GLint value = 0;
|
||||
|
||||
// Make sure that extensions are initialized
|
||||
sf::priv::ensureExtensionsInit();
|
||||
|
||||
glCheck(glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value));
|
||||
|
||||
return static_cast<unsigned int>(value);
|
||||
|
Loading…
Reference in New Issue
Block a user