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
f78d85ff
Commit
f78d85ff
authored
Apr 26, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simply pass an IWineD3DSurfaceImpl pointer to surface_set_texture_target().
parent
294d9dae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
15 deletions
+13
-15
cubetexture.c
dlls/wined3d/cubetexture.c
+2
-2
surface.c
dlls/wined3d/surface.c
+8
-10
texture.c
dlls/wined3d/texture.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/cubetexture.c
View file @
f78d85ff
...
...
@@ -126,7 +126,7 @@ static void cubetexture_cleanup(IWineD3DCubeTextureImpl *This)
* surface doesn't try and release it. */
surface_set_texture_name
(
surface
,
0
,
TRUE
);
surface_set_texture_name
(
surface
,
0
,
FALSE
);
surface_set_texture_target
(
(
IWineD3DSurface
*
)
surface
,
0
);
surface_set_texture_target
(
surface
,
0
);
IWineD3DSurface_SetContainer
((
IWineD3DSurface
*
)
surface
,
NULL
);
IWineD3DSurface_Release
((
IWineD3DSurface
*
)
surface
);
}
...
...
@@ -559,7 +559,7 @@ HRESULT cubetexture_init(IWineD3DCubeTextureImpl *texture, UINT edge_length, UIN
}
IWineD3DSurface_SetContainer
(
surface
,
(
IWineD3DBase
*
)
texture
);
surface_set_texture_target
(
surface
,
cube_targets
[
j
]);
surface_set_texture_target
(
(
IWineD3DSurfaceImpl
*
)
surface
,
cube_targets
[
j
]);
texture
->
baseTexture
.
sub_resources
[
idx
]
=
(
IWineD3DResourceImpl
*
)
surface
;
TRACE
(
"Created surface level %u @ %p.
\n
"
,
i
,
surface
);
}
...
...
dlls/wined3d/surface.c
View file @
f78d85ff
...
...
@@ -499,25 +499,23 @@ void surface_set_texture_name(IWineD3DSurfaceImpl *surface, GLuint new_name, BOO
surface_force_reload
(
surface
);
}
void
surface_set_texture_target
(
IWineD3DSurface
*
i
face
,
GLenum
target
)
void
surface_set_texture_target
(
IWineD3DSurface
Impl
*
sur
face
,
GLenum
target
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
TRACE
(
"(%p) : setting target %#x
\n
"
,
This
,
target
);
TRACE
(
"surface %p, target %#x.
\n
"
,
surface
,
target
);
if
(
This
->
texture_target
!=
target
)
if
(
surface
->
texture_target
!=
target
)
{
if
(
target
==
GL_TEXTURE_RECTANGLE_ARB
)
{
This
->
Flags
&=
~
SFLAG_NORMCOORD
;
surface
->
Flags
&=
~
SFLAG_NORMCOORD
;
}
else
if
(
This
->
texture_target
==
GL_TEXTURE_RECTANGLE_ARB
)
else
if
(
surface
->
texture_target
==
GL_TEXTURE_RECTANGLE_ARB
)
{
This
->
Flags
|=
SFLAG_NORMCOORD
;
surface
->
Flags
|=
SFLAG_NORMCOORD
;
}
}
This
->
texture_target
=
target
;
surface_force_reload
(
This
);
surface
->
texture_target
=
target
;
surface_force_reload
(
surface
);
}
/* Context activation is done by the caller. */
...
...
dlls/wined3d/texture.c
View file @
f78d85ff
...
...
@@ -118,7 +118,7 @@ static void texture_cleanup(IWineD3DTextureImpl *This)
* surface doesn't try and release it */
surface_set_texture_name
(
surface
,
0
,
TRUE
);
surface_set_texture_name
(
surface
,
0
,
FALSE
);
surface_set_texture_target
(
(
IWineD3DSurface
*
)
surface
,
0
);
surface_set_texture_target
(
surface
,
0
);
IWineD3DSurface_SetContainer
((
IWineD3DSurface
*
)
surface
,
NULL
);
IWineD3DSurface_Release
((
IWineD3DSurface
*
)
surface
);
}
...
...
@@ -612,7 +612,7 @@ HRESULT texture_init(IWineD3DTextureImpl *texture, UINT width, UINT height, UINT
}
IWineD3DSurface_SetContainer
(
surface
,
(
IWineD3DBase
*
)
texture
);
surface_set_texture_target
(
surface
,
texture
->
target
);
surface_set_texture_target
(
(
IWineD3DSurfaceImpl
*
)
surface
,
texture
->
target
);
texture
->
baseTexture
.
sub_resources
[
i
]
=
(
IWineD3DResourceImpl
*
)
surface
;
TRACE
(
"Created surface level %u @ %p.
\n
"
,
i
,
surface
);
/* Calculate the next mipmap level. */
...
...
dlls/wined3d/wined3d_private.h
View file @
f78d85ff
...
...
@@ -2681,7 +2681,7 @@ void surface_modify_ds_location(IWineD3DSurfaceImpl *surface, DWORD location) DE
void
surface_set_compatible_renderbuffer
(
IWineD3DSurfaceImpl
*
surface
,
unsigned
int
width
,
unsigned
int
height
)
DECLSPEC_HIDDEN
;
void
surface_set_texture_name
(
IWineD3DSurfaceImpl
*
surface
,
GLuint
name
,
BOOL
srgb_name
)
DECLSPEC_HIDDEN
;
void
surface_set_texture_target
(
IWineD3DSurface
*
i
face
,
GLenum
target
)
DECLSPEC_HIDDEN
;
void
surface_set_texture_target
(
IWineD3DSurface
Impl
*
sur
face
,
GLenum
target
)
DECLSPEC_HIDDEN
;
BOOL
getColorBits
(
const
struct
wined3d_format_desc
*
format_desc
,
short
*
redSize
,
short
*
greenSize
,
short
*
blueSize
,
short
*
alphaSize
,
short
*
totalSize
)
DECLSPEC_HIDDEN
;
...
...
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