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
d1c03fe4
Commit
d1c03fe4
authored
Jul 13, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx10: Don't check frame count in load_texture_data.
parent
3265019d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
texture.c
dlls/d3dx10_43/texture.c
+1
-3
No files found.
dlls/d3dx10_43/texture.c
View file @
d1c03fe4
...
...
@@ -816,7 +816,7 @@ static HRESULT convert_image(IWICImagingFactory *factory, IWICBitmapFrameDecode
HRESULT
load_texture_data
(
const
void
*
data
,
SIZE_T
size
,
D3DX10_IMAGE_LOAD_INFO
*
load_info
,
D3D10_SUBRESOURCE_DATA
**
resource_data
)
{
unsigned
int
frame_count
,
stride
,
frame_size
,
i
;
unsigned
int
stride
,
frame_size
,
i
;
IWICDdsFrameDecode
*
dds_frame
=
NULL
;
IWICBitmapFrameDecode
*
frame
=
NULL
;
IWICImagingFactory
*
factory
=
NULL
;
...
...
@@ -873,8 +873,6 @@ HRESULT load_texture_data(const void *data, SIZE_T size, D3DX10_IMAGE_LOAD_INFO
goto
end
;
if
(
FAILED
(
hr
=
IWICImagingFactory_CreateDecoderFromStream
(
factory
,
(
IStream
*
)
stream
,
NULL
,
0
,
&
decoder
)))
goto
end
;
if
(
FAILED
(
hr
=
IWICBitmapDecoder_GetFrameCount
(
decoder
,
&
frame_count
))
||
!
frame_count
)
goto
end
;
if
(
img_info
.
ImageFileFormat
==
D3DX10_IFF_DDS
)
{
...
...
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