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
12608b0a
Commit
12608b0a
authored
Mar 19, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Unify "gl_formats_template" naming with the other format info tables.
parent
3aaa6ee6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
utils.c
dlls/wined3d/utils.c
+22
-22
No files found.
dlls/wined3d/utils.c
View file @
12608b0a
...
...
@@ -218,20 +218,20 @@ static const struct wined3d_format_vertex_info format_vertex_info[] =
{
WINED3DFMT_R16G16B16A16_FLOAT
,
WINED3D_FFP_EMIT_FLOAT16_4
,
4
,
GL_FLOAT
,
4
,
GL_FALSE
,
sizeof
(
GLhalfNV
)}
};
typedef
struct
{
WINED3DFORMAT
fmt
;
GLint
glInternal
,
glGammaInternal
,
rtInternal
,
glFormat
,
glType
;
unsigned
int
Flags
;
struct
wined3d_format_texture_info
{
WINED3DFORMAT
format
;
GLint
gl_internal
;
GLint
gl_srgb_internal
;
GLint
gl_rt_internal
;
GLint
gl_format
;
GLint
gl_type
;
unsigned
int
flags
;
GL_SupportedExt
extension
;
}
GlPixelFormatDescTemplate
;
};
/*****************************************************************************
* OpenGL format template. Contains unexciting formats which do not need
* extension checks. The order in this table is independent of the order in
* the table StaticPixelFormatDesc above. Not all formats have to be in this
* table.
*/
static
const
GlPixelFormatDescTemplate
gl_formats_template
[]
=
{
static
const
struct
wined3d_format_texture_info
format_texture_info
[]
=
{
/* WINED3DFORMAT internal srgbInternal rtInternal
format type
flags
...
...
@@ -798,28 +798,28 @@ static BOOL init_format_texture_info(struct wined3d_gl_info *gl_info)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
gl_formats_template
)
/
sizeof
(
gl_formats_template
[
0
]
);
++
i
)
for
(
i
=
0
;
i
<
sizeof
(
format_texture_info
)
/
sizeof
(
*
format_texture_info
);
++
i
)
{
int
fmt_idx
=
getFmtIdx
(
gl_formats_template
[
i
].
fm
t
);
int
fmt_idx
=
getFmtIdx
(
format_texture_info
[
i
].
forma
t
);
struct
wined3d_format_desc
*
desc
;
if
(
fmt_idx
==
-
1
)
{
ERR
(
"Format %s (%#x) not found.
\n
"
,
debug_d3dformat
(
gl_formats_template
[
i
].
fmt
),
gl_formats_template
[
i
].
fm
t
);
debug_d3dformat
(
format_texture_info
[
i
].
format
),
format_texture_info
[
i
].
forma
t
);
return
FALSE
;
}
if
(
!
gl_info
->
supported
[
gl_formats_template
[
i
].
extension
])
continue
;
if
(
!
gl_info
->
supported
[
format_texture_info
[
i
].
extension
])
continue
;
desc
=
&
gl_info
->
gl_formats
[
fmt_idx
];
desc
->
glInternal
=
gl_formats_template
[
i
].
glI
nternal
;
desc
->
glGammaInternal
=
gl_formats_template
[
i
].
glGammaI
nternal
;
desc
->
rtInternal
=
gl_formats_template
[
i
].
rtI
nternal
;
desc
->
glFormat
=
gl_formats_template
[
i
].
glF
ormat
;
desc
->
glType
=
gl_formats_template
[
i
].
glT
ype
;
desc
->
glInternal
=
format_texture_info
[
i
].
gl_i
nternal
;
desc
->
glGammaInternal
=
format_texture_info
[
i
].
gl_srgb_i
nternal
;
desc
->
rtInternal
=
format_texture_info
[
i
].
gl_rt_i
nternal
;
desc
->
glFormat
=
format_texture_info
[
i
].
gl_f
ormat
;
desc
->
glType
=
format_texture_info
[
i
].
gl_t
ype
;
desc
->
color_fixup
=
COLOR_FIXUP_IDENTITY
;
desc
->
Flags
|=
gl_formats_template
[
i
].
F
lags
;
desc
->
Flags
|=
format_texture_info
[
i
].
f
lags
;
desc
->
heightscale
=
1
.
0
f
;
}
...
...
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