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
c1ea8fb6
Commit
c1ea8fb6
authored
Apr 29, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the VTF format capability in the format table.
parent
be7b0158
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
25 deletions
+4
-25
directx.c
dlls/wined3d/directx.c
+2
-24
utils.c
dlls/wined3d/utils.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/directx.c
View file @
c1ea8fb6
...
...
@@ -3636,30 +3636,8 @@ static BOOL CheckSurfaceCapability(struct wined3d_adapter *adapter,
static
BOOL
CheckVertexTextureCapability
(
struct
wined3d_adapter
*
adapter
,
const
struct
wined3d_format_desc
*
format_desc
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
adapter
->
gl_info
;
if
(
!
gl_info
->
limits
.
vertex_samplers
)
{
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
return
FALSE
;
}
switch
(
format_desc
->
format
)
{
case
WINED3DFMT_R32G32B32A32_FLOAT
:
if
(
!
gl_info
->
supported
[
ARB_TEXTURE_FLOAT
])
{
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
return
FALSE
;
}
TRACE_
(
d3d_caps
)(
"[OK]
\n
"
);
return
TRUE
;
default:
TRACE_
(
d3d_caps
)(
"[FAILED]
\n
"
);
return
FALSE
;
}
return
FALSE
;
return
adapter
->
gl_info
.
limits
.
vertex_samplers
&&
(
format_desc
->
Flags
&
WINED3DFMT_FLAG_VTF
);
}
static
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceFormat
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
...
...
dlls/wined3d/utils.c
View file @
c1ea8fb6
...
...
@@ -619,7 +619,7 @@ static const struct wined3d_format_texture_info format_texture_info[] =
ARB_TEXTURE_RG
,
NULL
},
{
WINED3DFMT_R32G32B32A32_FLOAT
,
GL_RGBA32F_ARB
,
GL_RGBA32F_ARB
,
0
,
GL_RGBA
,
GL_FLOAT
,
0
,
WINED3DFMT_FLAG_RENDERTARGET
,
WINED3DFMT_FLAG_RENDERTARGET
|
WINED3DFMT_FLAG_VTF
,
ARB_TEXTURE_FLOAT
,
NULL
},
/* Float */
{
WINED3DFMT_R16_FLOAT
,
GL_RGB16F_ARB
,
GL_RGB16F_ARB
,
0
,
...
...
dlls/wined3d/wined3d_private.h
View file @
c1ea8fb6
...
...
@@ -2991,6 +2991,7 @@ extern WINED3DFORMAT pixelformat_for_depth(DWORD depth) DECLSPEC_HIDDEN;
#define WINED3DFMT_FLAG_BUMPMAP 0x00000400
#define WINED3DFMT_FLAG_SRGB_READ 0x00000800
#define WINED3DFMT_FLAG_SRGB_WRITE 0x00001000
#define WINED3DFMT_FLAG_VTF 0x00002000
struct
wined3d_format_desc
{
...
...
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