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
b882a702
Commit
b882a702
authored
Jan 24, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly set WINED3DFMT_FLAG_VTF in init_format_texture_info().
parent
5114cbd2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
21 deletions
+8
-21
directx.c
dlls/wined3d/directx.c
+3
-21
utils.c
dlls/wined3d/utils.c
+5
-0
No files found.
dlls/wined3d/directx.c
View file @
b882a702
...
...
@@ -3877,24 +3877,6 @@ static BOOL CheckSurfaceCapability(const struct wined3d_adapter *adapter,
return
FALSE
;
}
static
BOOL
CheckVertexTextureCapability
(
const
struct
wined3d_adapter
*
adapter
,
const
struct
wined3d_format
*
format
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
adapter
->
gl_info
;
if
(
!
gl_info
->
limits
.
vertex_samplers
||
!
(
format
->
flags
&
WINED3DFMT_FLAG_VTF
))
return
FALSE
;
switch
(
format
->
id
)
{
case
WINED3DFMT_R32G32B32A32_FLOAT
:
case
WINED3DFMT_R32_FLOAT
:
return
TRUE
;
default:
return
!
(
gl_info
->
quirks
&
WINED3D_QUIRK_LIMITED_TEX_FILTERING
);
}
}
HRESULT
CDECL
wined3d_check_device_format
(
const
struct
wined3d
*
wined3d
,
UINT
adapter_idx
,
enum
wined3d_device_type
device_type
,
enum
wined3d_format_id
adapter_format_id
,
DWORD
usage
,
enum
wined3d_resource_type
resource_type
,
enum
wined3d_format_id
check_format_id
)
...
...
@@ -4014,7 +3996,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
if
(
usage
&
WINED3DUSAGE_QUERY_VERTEXTEXTURE
)
{
if
(
!
CheckVertexTextureCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_VTF
))
{
TRACE
(
"[FAILED] - No vertex texture support.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
@@ -4180,7 +4162,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
if
(
usage
&
WINED3DUSAGE_QUERY_VERTEXTEXTURE
)
{
if
(
!
CheckVertexTextureCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_VTF
))
{
TRACE
(
"[FAILED] - No vertex texture support.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
@@ -4348,7 +4330,7 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
if
(
usage
&
WINED3DUSAGE_QUERY_VERTEXTEXTURE
)
{
if
(
!
CheckVertexTextureCapability
(
adapter
,
format
))
if
(
!
(
format
->
flags
&
WINED3DFMT_FLAG_VTF
))
{
TRACE
(
"[FAILED] - No vertex texture support.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
dlls/wined3d/utils.c
View file @
b882a702
...
...
@@ -1287,8 +1287,13 @@ static BOOL init_format_texture_info(struct wined3d_adapter *adapter, struct win
format
->
height_scale
.
numerator
=
1
;
format
->
height_scale
.
denominator
=
1
;
if
(
!
gl_info
->
limits
.
vertex_samplers
)
format
->
flags
&=
~
WINED3DFMT_FLAG_VTF
;
if
(
!
(
gl_info
->
quirks
&
WINED3D_QUIRK_LIMITED_TEX_FILTERING
))
format
->
flags
|=
WINED3DFMT_FLAG_FILTERING
;
else
if
(
format
->
id
!=
WINED3DFMT_R32G32B32A32_FLOAT
&&
format
->
id
!=
WINED3DFMT_R32_FLOAT
)
format
->
flags
&=
~
WINED3DFMT_FLAG_VTF
;
if
(
format
->
glGammaInternal
!=
format
->
glInternal
)
{
...
...
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