summaryrefslogtreecommitdiff
path: root/externals/cmake-modules
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2014-08-23 21:00:08 -0300
committerGravatar Yuri Kunde Schlesner2014-09-01 17:41:56 -0300
commit478289140daae28cf7eabf54af3addf476aaad9c (patch)
treede13d92f26abaaf5eb0348ae35b2d1c23be497c7 /externals/cmake-modules
parentMerge pull request #84 from bunnei/fix-hw-synchronization (diff)
downloadyuzu-478289140daae28cf7eabf54af3addf476aaad9c.tar.gz
yuzu-478289140daae28cf7eabf54af3addf476aaad9c.tar.xz
yuzu-478289140daae28cf7eabf54af3addf476aaad9c.zip
Replace GLEW with a glLoadGen loader.
This should fix the GL loading errors that occur in some drivers due to the use of deprecated functions by GLEW. Side benefits are more accurate auto-completion (deprecated function and symbols don't exist) and faster pointer loading (less entrypoints to load). In addition it removes an external library depency, simplifying the build system a bit and eliminating one set of binary libraries for Windows.
Diffstat (limited to 'externals/cmake-modules')
-rw-r--r--externals/cmake-modules/FindGLEW.cmake47
1 files changed, 0 insertions, 47 deletions
diff --git a/externals/cmake-modules/FindGLEW.cmake b/externals/cmake-modules/FindGLEW.cmake
deleted file mode 100644
index 105e30eb0..000000000
--- a/externals/cmake-modules/FindGLEW.cmake
+++ /dev/null
@@ -1,47 +0,0 @@
1#
2# Try to find GLEW library and include path.
3# Once done this will define
4#
5# GLEW_FOUND
6# GLEW_INCLUDE_PATH
7# GLEW_LIBRARY
8#
9
10IF (WIN32)
11 FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
12 $ENV{PROGRAMFILES}/GLEW/include
13 ${PROJECT_SOURCE_DIR}/src/nvgl/glew/include
14 DOC "The directory where GL/glew.h resides")
15 FIND_LIBRARY( GLEW_LIBRARY
16 NAMES glew GLEW glew32 glew32s
17 PATHS
18 $ENV{PROGRAMFILES}/GLEW/lib
19 ${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
20 ${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
21 DOC "The GLEW library")
22ELSE (WIN32)
23 FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
24 /usr/include
25 /usr/local/include
26 /sw/include
27 /opt/local/include
28 DOC "The directory where GL/glew.h resides")
29 FIND_LIBRARY( GLEW_LIBRARY
30 NAMES GLEW glew
31 PATHS
32 /usr/lib64
33 /usr/lib
34 /usr/local/lib64
35 /usr/local/lib
36 /sw/lib
37 /opt/local/lib
38 DOC "The GLEW library")
39ENDIF (WIN32)
40
41IF (GLEW_INCLUDE_PATH)
42 SET( GLEW_FOUND 1 CACHE STRING "Set to 1 if GLEW is found, 0 otherwise")
43ELSE (GLEW_INCLUDE_PATH)
44 SET( GLEW_FOUND 0 CACHE STRING "Set to 1 if GLEW is found, 0 otherwise")
45ENDIF (GLEW_INCLUDE_PATH)
46
47MARK_AS_ADVANCED( GLEW_FOUND )