Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/app_blender/AppCanvas.cpp')
-rwxr-xr-xsource/blender/freestyle/intern/app_blender/AppCanvas.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/source/blender/freestyle/intern/app_blender/AppCanvas.cpp b/source/blender/freestyle/intern/app_blender/AppCanvas.cpp
index 312a276f13d..bd38ab26c01 100755
--- a/source/blender/freestyle/intern/app_blender/AppCanvas.cpp
+++ b/source/blender/freestyle/intern/app_blender/AppCanvas.cpp
@@ -34,7 +34,7 @@
#ifdef WIN32
# include <windows.h>
-# include "../rendering/extgl.h"
+# include "GL/glew.h"
#endif
#ifdef __MACH__
# include <OpenGL/gl.h>
@@ -108,19 +108,21 @@ void AppCanvas::init()
{
#ifdef WIN32
static bool firsttime = true;
- if (firsttime)
- {
- if (extgl_Initialize() != 0)
- cerr << "Error: problem occurred while initializing GL extensions" << endl;
- else
- cout << "GL extensions initialized" << endl;
+ if (firsttime) {
+
+ GLenum err = glewInit();
+ if (GLEW_OK != err)
+ {
+ cerr << "Error: problem occurred while initializing GLEW" << endl;
+ }
+ cout << "GLEW initialized" << endl;
- if(!glutils_extgl_GetProcAddress("glBlendEquation")){
+ if(!glBlendEquation) {
_blendEquation = false;
cout << "glBlendEquation unavailable on this hardware -> switching to strokes basic rendering mode" << endl;
- }
- firsttime=false;
- }
+ }
+ firsttime=false;
+ }
#endif
_Renderer = new GLStrokeRenderer;