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