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
9be5a5e9
Commit
9be5a5e9
authored
Aug 28, 2007
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Aug 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Ask for enough RGB bits for pbuffers.
parent
dc7252a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
context.c
dlls/wined3d/context.c
+5
-2
No files found.
dlls/wined3d/context.c
View file @
9be5a5e9
...
...
@@ -136,7 +136,7 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar
if
(
create_pbuffer
)
{
HDC
hdc_parent
=
GetDC
(
win_handle
);
int
iPixelFormat
=
0
;
short
red
,
green
,
blue
,
alphaBits
,
colorBits
;
short
red
Bits
,
greenBits
,
blueBits
,
alphaBits
,
colorBits
;
short
depthBits
,
stencilBits
;
IWineD3DSurface
*
StencilSurface
=
This
->
stencilBufferTarget
;
...
...
@@ -147,11 +147,14 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar
unsigned
int
nFormats
;
/* Retrieve the specifications for the pixelformat from the backbuffer / stencilbuffer */
getColorBits
(
target
->
resource
.
format
,
&
red
,
&
green
,
&
blue
,
&
alphaBits
,
&
colorBits
);
getColorBits
(
target
->
resource
.
format
,
&
red
Bits
,
&
greenBits
,
&
blueBits
,
&
alphaBits
,
&
colorBits
);
getDepthStencilBits
(
StencilBufferFormat
,
&
depthBits
,
&
stencilBits
);
PUSH2
(
WGL_DRAW_TO_PBUFFER_ARB
,
1
);
/* We need pbuffer support; doublebuffering isn't needed */
PUSH2
(
WGL_PIXEL_TYPE_ARB
,
WGL_TYPE_RGBA_ARB
);
/* Make sure we don't get a float or color index format */
PUSH2
(
WGL_COLOR_BITS_ARB
,
colorBits
);
PUSH2
(
WGL_RED_BITS_ARB
,
redBits
);
PUSH2
(
WGL_GREEN_BITS_ARB
,
greenBits
);
PUSH2
(
WGL_BLUE_BITS_ARB
,
blueBits
);
PUSH2
(
WGL_ALPHA_BITS_ARB
,
alphaBits
);
PUSH2
(
WGL_DEPTH_BITS_ARB
,
depthBits
);
PUSH2
(
WGL_STENCIL_BITS_ARB
,
stencilBits
);
...
...
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