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
3fd66bc6
Commit
3fd66bc6
authored
Aug 22, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make some lookup tables const.
parent
c3cdebcf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
context.c
dlls/wined3d/context.c
+5
-2
swapchain.c
dlls/wined3d/swapchain.c
+1
-1
utils.c
dlls/wined3d/utils.c
+3
-2
No files found.
dlls/wined3d/context.c
View file @
3fd66bc6
...
...
@@ -1114,11 +1114,14 @@ static int WineD3D_ChoosePixelFormat(IWineD3DDeviceImpl *This, HDC hdc,
short
redBits
,
greenBits
,
blueBits
,
alphaBits
,
colorBits
;
short
depthBits
=
0
,
stencilBits
=
0
;
struct
match_type
{
static
const
struct
{
BOOL
require_aux
;
BOOL
exact_alpha
;
BOOL
exact_color
;
}
matches
[]
=
{
}
matches
[]
=
{
/* First, try without alpha match buffers. MacOS supports aux buffers only
* on A8R8G8B8, and we prefer better offscreen rendering over an alpha match.
* Then try without aux buffers - this is the most common cause for not
...
...
dlls/wined3d/swapchain.c
View file @
3fd66bc6
...
...
@@ -771,7 +771,7 @@ HRESULT swapchain_init(IWineD3DSwapChainImpl *swapchain, WINED3DSURFTYPE surface
if
(
surface_type
==
SURFACE_OPENGL
)
{
WINED3DFORMAT
formats
[]
=
static
const
WINED3DFORMAT
formats
[]
=
{
WINED3DFMT_D24_UNORM_S8_UINT
,
WINED3DFMT_D32_UNORM
,
...
...
dlls/wined3d/utils.c
View file @
3fd66bc6
...
...
@@ -1192,8 +1192,8 @@ static BOOL color_match(DWORD c1, DWORD c2, BYTE max_diff)
/* A context is provided by the caller */
static
BOOL
check_filter
(
const
struct
wined3d_gl_info
*
gl_info
,
GLenum
internal
)
{
static
const
DWORD
data
[]
=
{
0x00000000
,
0xffffffff
};
GLuint
tex
,
fbo
,
buffer
;
const
DWORD
data
[]
=
{
0x00000000
,
0xffffffff
};
DWORD
readback
[
16
*
1
];
BOOL
ret
=
FALSE
;
...
...
@@ -1291,7 +1291,8 @@ static void init_format_filter_info(struct wined3d_gl_info *gl_info, enum wined3
{
struct
wined3d_format_desc
*
desc
;
unsigned
int
fmt_idx
,
i
;
WINED3DFORMAT
fmts16
[]
=
{
static
const
WINED3DFORMAT
fmts16
[]
=
{
WINED3DFMT_R16_FLOAT
,
WINED3DFMT_R16G16_FLOAT
,
WINED3DFMT_R16G16B16A16_FLOAT
,
...
...
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