Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e618ab65
Commit
e618ab65
authored
Feb 03, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Feb 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix arguments for OSMesaMakeCurrent when using 16 bit formats.
parent
e0e909ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
opengl.c
dlls/gdi32/dibdrv/opengl.c
+7
-1
No files found.
dlls/gdi32/dibdrv/opengl.c
View file @
e618ab65
...
...
@@ -251,6 +251,7 @@ static BOOL dibdrv_wglMakeCurrent( HDC hdc, struct wgl_context *context )
HBITMAP
bitmap
;
BITMAPOBJ
*
bmp
;
dib_info
dib
;
GLenum
type
;
BOOL
ret
=
FALSE
;
if
(
!
context
)
...
...
@@ -281,7 +282,12 @@ static BOOL dibdrv_wglMakeCurrent( HDC hdc, struct wgl_context *context )
TRACE
(
"context %p bits %p size %ux%u
\n
"
,
context
,
bits
,
width
,
height
);
ret
=
pOSMesaMakeCurrent
(
context
->
context
,
bits
,
GL_UNSIGNED_BYTE
,
width
,
height
);
if
(
pixel_formats
[
context
->
format
-
1
].
mesa
==
OSMESA_RGB_565
)
type
=
GL_UNSIGNED_SHORT_5_6_5
;
else
type
=
GL_UNSIGNED_BYTE
;
ret
=
pOSMesaMakeCurrent
(
context
->
context
,
bits
,
type
,
width
,
height
);
if
(
ret
)
{
pOSMesaPixelStore
(
OSMESA_ROW_LENGTH
,
abs
(
dib
.
stride
)
*
8
/
dib
.
bit_count
);
...
...
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