mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025162: Visualization, TKOpenGl - drop GLU library dependency
Drop gluScaleImage() and gluBuild2DMipmaps(). Drop gluUnPorject() from samples. Output message if NPOT is unsupported and texture coordinates was scaled. Texture initialization is fail in this case. Output message if texture dimension exceed the max dimension. Texture initialization is fail in this case. TKOpenGl does not depends on deprecated GLU anymore.
This commit is contained in:
@@ -18,12 +18,10 @@ endif()
|
||||
|
||||
if (WIN32)
|
||||
list( APPEND USED_LIBS opengl32.lib )
|
||||
list( APPEND USED_LIBS glu32.lib )
|
||||
elseif(APPLE)
|
||||
find_library(FRAMEWORKS_OPENGL NAMES OpenGL)
|
||||
if(USE_GLX)
|
||||
list( APPEND USED_LIBS GL )
|
||||
list( APPEND USED_LIBS GLU )
|
||||
find_package(X11 COMPONENTS X11 Xext Xmu Xi)
|
||||
list( APPEND USED_LIBS ${X11_LIBRARIES} )
|
||||
list( APPEND USED_LIBS ${X11_Xi_LIB} )
|
||||
@@ -40,7 +38,6 @@ elseif(APPLE)
|
||||
find_library(FRAMEWORKS_IOKIT NAMES IOKit)
|
||||
list( APPEND USED_LIBS ${FRAMEWORKS_IOKIT} )
|
||||
else()
|
||||
list( APPEND USED_LIBS GLU )
|
||||
list( APPEND USED_LIBS GL )
|
||||
list( APPEND USED_LIBS X11 )
|
||||
list( APPEND USED_LIBS Xext )
|
||||
|
Reference in New Issue
Block a user