classic compile error: GLEW_STATIC needs to be define when we use opengl functions
This commit is contained in:
@@ -18,7 +18,7 @@ sources = env.Glob('bmesh/*.c')
|
||||
env.BlenderLib( libname = 'bf_python_bmesh', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','player'], priority = [362,165])
|
||||
|
||||
# generic
|
||||
defs = []
|
||||
defs = ['GLEW_STATIC']
|
||||
|
||||
if is_debug:
|
||||
defs.append('_DEBUG')
|
||||
|
||||
@@ -46,4 +46,6 @@ set(SRC
|
||||
py_capi_utils.h
|
||||
)
|
||||
|
||||
add_definitions(-DGLEW_STATIC)
|
||||
|
||||
blender_add_lib(bf_python_ext "${SRC}" "${INC}" "${INC_SYS}")
|
||||
|
||||
Reference in New Issue
Block a user