Compare commits

...

3 Commits

Author SHA1 Message Date
Rudolf Heszele
10806d27a5
Merge 84196348a6 into 196b58d441 2025-08-26 16:21:34 +12:00
Nigel Stewart
196b58d441 Put glTexturePageCommitmentEXT in GL_EXT_direct_state_access scope manually: Issue #445 2025-08-25 11:35:25 +10:00
Rudolf Heszele
84196348a6 Only include .rc files with MSVC 2025-02-22 09:09:07 +01:00
2 changed files with 9 additions and 3 deletions

View File

@ -378,6 +378,12 @@ EOT
void glVertexArrayVertexAttribDivisorEXT (GLuint vaobj, GLuint index, GLuint divisor)
EOT
# add missing functions to GL_EXT_direct_state_access (GL_ARB_sparse_texture related)
# https://github.com/nigels-com/glew/issues/445
cat >> $1/GL_EXT_direct_state_access <<EOT
void glTexturePageCommitmentEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit)
EOT
# Filter out GL_UNSIGNED_INT and GL_FLOAT from GL_AMD_performance_monitor
grep -v 'GL_UNSIGNED_INT ' $1/GL_AMD_performance_monitor > tmp
mv tmp $1/GL_AMD_performance_monitor

View File

@ -107,7 +107,7 @@ set (GLEW_PUBLIC_HEADERS_FILES
)
set (GLEW_SRC_FILES ${GLEW_DIR}/src/glew.c)
if (WIN32)
if (MSVC)
list (APPEND GLEW_SRC_FILES ${GLEW_DIR}/build/glew.rc)
endif ()
@ -179,7 +179,7 @@ install ( TARGETS ${targets_to_install}
if (BUILD_UTILS)
set (GLEWINFO_SRC_FILES ${GLEW_DIR}/src/glewinfo.c)
if (WIN32)
if (MSVC)
list (APPEND GLEWINFO_SRC_FILES ${GLEW_DIR}/build/glewinfo.rc)
endif ()
add_executable (glewinfo ${GLEWINFO_SRC_FILES})
@ -193,7 +193,7 @@ if (BUILD_UTILS)
endif ()
set (VISUALINFO_SRC_FILES ${GLEW_DIR}/src/visualinfo.c)
if (WIN32)
if (MSVC)
list (APPEND VISUALINFO_SRC_FILES ${GLEW_DIR}/build/visualinfo.rc)
endif ()
add_executable (visualinfo ${VISUALINFO_SRC_FILES})