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
5d009230
Commit
5d009230
authored
May 03, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
May 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove some redundant fields from IWineD3DBaseTextureImpl.
parent
0b980876
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
9 deletions
+3
-9
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-1
basetexture.c
dlls/wined3d/basetexture.c
+2
-2
device.c
dlls/wined3d/device.c
+0
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-2
No files found.
dlls/wined3d/arb_program_shader.c
View file @
5d009230
...
...
@@ -419,7 +419,7 @@ static void shader_hw_sample(SHADER_OPCODE_ARG* arg, DWORD sampler_idx, const ch
/* Signedness correction */
if
(
!
GL_SUPPORT
(
NV_TEXTURE_SHADER3
)
/* Provides signed formats */
&&
texture
)
{
WINED3DFORMAT
format
=
texture
->
baseTextur
e
.
format
;
WINED3DFORMAT
format
=
texture
->
resourc
e
.
format
;
if
((
format
==
WINED3DFMT_V8U8
&&
!
GL_SUPPORT
(
ATI_ENVMAP_BUMPMAP
))
||
format
==
WINED3DFMT_Q8W8V8U8
||
...
...
dlls/wined3d/basetexture.c
View file @
5d009230
...
...
@@ -191,7 +191,7 @@ DWORD WINAPI IWineD3DBaseTextureImpl_GetLevelCount(IWineD3DBaseTexture *iface) {
HRESULT
WINAPI
IWineD3DBaseTextureImpl_SetAutoGenFilterType
(
IWineD3DBaseTexture
*
iface
,
WINED3DTEXTUREFILTERTYPE
FilterType
)
{
IWineD3DBaseTextureImpl
*
This
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
if
(
!
(
This
->
baseTextur
e
.
usage
&
WINED3DUSAGE_AUTOGENMIPMAP
))
{
if
(
!
(
This
->
resourc
e
.
usage
&
WINED3DUSAGE_AUTOGENMIPMAP
))
{
TRACE
(
"(%p) : returning invalid call
\n
"
,
This
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -203,7 +203,7 @@ HRESULT WINAPI IWineD3DBaseTextureImpl_SetAutoGenFilterType(IWineD3DBaseTexture
WINED3DTEXTUREFILTERTYPE
WINAPI
IWineD3DBaseTextureImpl_GetAutoGenFilterType
(
IWineD3DBaseTexture
*
iface
)
{
IWineD3DBaseTextureImpl
*
This
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
if
(
!
(
This
->
baseTextur
e
.
usage
&
WINED3DUSAGE_AUTOGENMIPMAP
))
{
if
(
!
(
This
->
resourc
e
.
usage
&
WINED3DUSAGE_AUTOGENMIPMAP
))
{
return
WINED3DTEXF_NONE
;
}
return
This
->
baseTexture
.
filterType
;
...
...
dlls/wined3d/device.c
View file @
5d009230
...
...
@@ -829,8 +829,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, U
object
->
pow2scalingFactorY
=
(((
float
)
Height
)
/
((
float
)
pow2Height
));
TRACE
(
" xf(%f) yf(%f)
\n
"
,
object
->
pow2scalingFactorX
,
object
->
pow2scalingFactorY
);
object
->
baseTexture
.
format
=
Format
;
/* Calculate levels for mip mapping */
if
(
Levels
==
0
)
{
TRACE
(
"calculating levels %d
\n
"
,
object
->
baseTexture
.
levels
);
...
...
@@ -904,7 +902,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *ifa
object
->
width
=
Width
;
object
->
height
=
Height
;
object
->
depth
=
Depth
;
object
->
baseTexture
.
format
=
Format
;
/* Calculate levels for mip mapping */
if
(
Levels
==
0
)
{
...
...
@@ -1025,7 +1022,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface
/* TODO: support for native non-power 2 */
/* Precalculated scaling for 'faked' non power of two texture coords */
object
->
pow2scalingFactor
=
((
float
)
EdgeLength
)
/
((
float
)
pow2EdgeLength
);
object
->
baseTexture
.
format
=
Format
;
/* Calculate levels for mip mapping */
if
(
Levels
==
0
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
5d009230
...
...
@@ -874,8 +874,6 @@ typedef struct IWineD3DBaseTextureClass
{
UINT
levels
;
BOOL
dirty
;
WINED3DFORMAT
format
;
DWORD
usage
;
UINT
textureName
;
UINT
LOD
;
WINED3DTEXTUREFILTERTYPE
filterType
;
...
...
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