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
1a61f46b
Commit
1a61f46b
authored
Apr 15, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Apr 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove temporary conv_byte_count fixup from d3dfmt_get_conv.
parent
cf087f74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
surface.c
dlls/wined3d/surface.c
+4
-8
No files found.
dlls/wined3d/surface.c
View file @
1a61f46b
...
...
@@ -2138,6 +2138,7 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
RECT
rect
=
{
0
,
0
,
This
->
pow2Width
,
This
->
pow2Height
};
/* Copy the default values from the surface. Below we might perform fixups */
/* TODO: get rid of color keying desc fixups by using e.g. a table. */
*
desc
=
*
This
->
resource
.
format_desc
;
*
convert
=
NO_CONVERSION
;
...
...
@@ -2192,6 +2193,7 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
desc
->
glFormat
=
GL_RGBA
;
desc
->
glInternal
=
GL_RGB5_A1
;
desc
->
glType
=
GL_UNSIGNED_SHORT_5_5_5_1
;
desc
->
conv_byte_count
=
2
;
}
break
;
...
...
@@ -2201,6 +2203,7 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
desc
->
glFormat
=
GL_BGRA
;
desc
->
glInternal
=
GL_RGB5_A1
;
desc
->
glType
=
GL_UNSIGNED_SHORT_1_5_5_5_REV
;
desc
->
conv_byte_count
=
2
;
}
break
;
...
...
@@ -2220,6 +2223,7 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
desc
->
glFormat
=
GL_RGBA
;
desc
->
glInternal
=
GL_RGBA8
;
desc
->
glType
=
GL_UNSIGNED_INT_8_8_8_8
;
desc
->
conv_byte_count
=
4
;
}
break
;
...
...
@@ -2227,14 +2231,6 @@ HRESULT d3dfmt_get_conv(IWineD3DSurfaceImpl *This, BOOL need_alpha_ck, BOOL use_
break
;
}
/* At the moment we don't override the byte_count when it is the same before
* and after conversion. Until that is fixed (which mostly applies to non-ck formats),
* make sure we explicitly set conv_byte_count.
* TODO: get rid of this.
*/
if
(
!
desc
->
conv_byte_count
)
desc
->
conv_byte_count
=
desc
->
byte_count
;
return
WINED3D_OK
;
}
...
...
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