Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1279d9a0
Commit
1279d9a0
authored
May 04, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
May 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually set the GL context before doing any GL calls.
parent
12c61661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+8
-7
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
1279d9a0
...
@@ -2314,6 +2314,13 @@ d3ddevice_create(IDirect3DDeviceImpl **obj, IDirect3DImpl *d3d, IDirectDrawSurfa
...
@@ -2314,6 +2314,13 @@ d3ddevice_create(IDirect3DDeviceImpl **obj, IDirect3DImpl *d3d, IDirectDrawSurfa
memcpy
(
object
->
view_mat
,
id_mat
,
16
*
sizeof
(
float
));
memcpy
(
object
->
view_mat
,
id_mat
,
16
*
sizeof
(
float
));
memcpy
(
object
->
proj_mat
,
id_mat
,
16
*
sizeof
(
float
));
memcpy
(
object
->
proj_mat
,
id_mat
,
16
*
sizeof
(
float
));
/* Initialisation */
TRACE
(
" setting current context
\n
"
);
LEAVE_GL
();
object
->
set_context
(
object
);
ENTER_GL
();
TRACE
(
" current context set
\n
"
);
/* allocate the clipping planes */
/* allocate the clipping planes */
glGetIntegerv
(
GL_MAX_CLIP_PLANES
,
&
max_clipping_planes
);
glGetIntegerv
(
GL_MAX_CLIP_PLANES
,
&
max_clipping_planes
);
if
(
max_clipping_planes
>
32
)
{
if
(
max_clipping_planes
>
32
)
{
...
@@ -2324,14 +2331,8 @@ d3ddevice_create(IDirect3DDeviceImpl **obj, IDirect3DImpl *d3d, IDirectDrawSurfa
...
@@ -2324,14 +2331,8 @@ d3ddevice_create(IDirect3DDeviceImpl **obj, IDirect3DImpl *d3d, IDirectDrawSurfa
TRACE
(
" capable of %d clipping planes
\n
"
,
(
int
)
object
->
max_clipping_planes
);
TRACE
(
" capable of %d clipping planes
\n
"
,
(
int
)
object
->
max_clipping_planes
);
object
->
clipping_planes
=
(
d3d7clippingplane
*
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
object
->
max_clipping_planes
*
sizeof
(
d3d7clippingplane
));
object
->
clipping_planes
=
(
d3d7clippingplane
*
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
object
->
max_clipping_planes
*
sizeof
(
d3d7clippingplane
));
/* Initialisation */
TRACE
(
" setting current context
\n
"
);
LEAVE_GL
();
object
->
set_context
(
object
);
ENTER_GL
();
TRACE
(
" current context set
\n
"
);
glHint
(
GL_FOG_HINT
,
GL_NICEST
);
glHint
(
GL_FOG_HINT
,
GL_NICEST
);
glClearColor
(
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
);
glClearColor
(
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
);
glClear
(
GL_COLOR_BUFFER_BIT
|
GL_DEPTH_BUFFER_BIT
|
GL_STENCIL_BUFFER_BIT
);
glClear
(
GL_COLOR_BUFFER_BIT
|
GL_DEPTH_BUFFER_BIT
|
GL_STENCIL_BUFFER_BIT
);
glDrawBuffer
(
buffer
);
glDrawBuffer
(
buffer
);
...
...
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