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
68467cf3
Commit
68467cf3
authored
Feb 22, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Request alpha in backbuffer mode, to work correctly with multiple opengl pixel formats.
parent
7f33e95c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
context.c
dlls/wined3d/context.c
+10
-1
No files found.
dlls/wined3d/context.c
View file @
68467cf3
...
...
@@ -210,6 +210,7 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar
int
attribs
[
256
];
int
nAttribs
=
0
;
unsigned
int
nFormats
;
WINED3DFORMAT
fmt
=
target
->
resource
.
format
;
hdc
=
GetDC
(
win_handle
);
if
(
hdc
==
NULL
)
{
...
...
@@ -224,7 +225,15 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar
PUSH2
(
WGL_SUPPORT_OPENGL_ARB
,
GL_TRUE
);
PUSH2
(
WGL_ACCELERATION_ARB
,
WGL_FULL_ACCELERATION_ARB
);
/* Make sure we receive an accelerated format. On windows (at least on ATI) this is not always the case */
if
(
!
getColorBits
(
target
->
resource
.
format
,
&
redBits
,
&
greenBits
,
&
blueBits
,
&
alphaBits
,
&
colorBits
))
{
/* In case of ORM_BACKBUFFER, make sure to request an alpha component for X4R4G4B4/X8R8G8B8 as we might need it for the backbuffer. */
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_BACKBUFFER
)
{
if
(
target
->
resource
.
format
==
WINED3DFMT_X4R4G4B4
)
fmt
=
WINED3DFMT_A4R4G4B4
;
else
if
(
target
->
resource
.
format
==
WINED3DFMT_X8R8G8B8
)
fmt
=
WINED3DFMT_A8R8G8B8
;
}
if
(
!
getColorBits
(
fmt
,
&
redBits
,
&
greenBits
,
&
blueBits
,
&
alphaBits
,
&
colorBits
))
{
ERR
(
"Unable to get color bits for format %#x!
\n
"
,
target
->
resource
.
format
);
return
FALSE
;
}
...
...
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