Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
a57f7ae8
Commit
a57f7ae8
authored
Jul 20, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OpenGL canvas freeze under Windows.
parent
aad359fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
opengl_gal.cpp
common/gal/opengl/opengl_gal.cpp
+1
-1
opengl_gal.h
include/gal/opengl/opengl_gal.h
+1
-1
No files found.
common/gal/opengl/opengl_gal.cpp
View file @
a57f7ae8
...
@@ -124,7 +124,7 @@ void OPENGL_GAL::BeginDrawing()
...
@@ -124,7 +124,7 @@ void OPENGL_GAL::BeginDrawing()
{
{
SetCurrent
(
*
glContext
);
SetCurrent
(
*
glContext
);
clientDC
=
new
wx
Pai
ntDC
(
this
);
clientDC
=
new
wx
Clie
ntDC
(
this
);
// Initialize GLEW, FBOs & VBOs
// Initialize GLEW, FBOs & VBOs
if
(
!
isGlewInitialized
)
if
(
!
isGlewInitialized
)
...
...
include/gal/opengl/opengl_gal.h
View file @
a57f7ae8
...
@@ -252,7 +252,7 @@ private:
...
@@ -252,7 +252,7 @@ private:
static
const
int
CIRCLE_POINTS
=
64
;
///< The number of points for circle approximation
static
const
int
CIRCLE_POINTS
=
64
;
///< The number of points for circle approximation
static
const
int
CURVE_POINTS
=
32
;
///< The number of points for curve approximation
static
const
int
CURVE_POINTS
=
32
;
///< The number of points for curve approximation
wx
PaintDC
*
clientDC
;
///< Drawing context
wx
ClientDC
*
clientDC
;
///< Drawing context
static
wxGLContext
*
glContext
;
///< OpenGL context of wxWidgets
static
wxGLContext
*
glContext
;
///< OpenGL context of wxWidgets
wxWindow
*
parentWindow
;
///< Parent window
wxWindow
*
parentWindow
;
///< Parent window
wxEvtHandler
*
mouseListener
;
wxEvtHandler
*
mouseListener
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment