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
2d9748b1
Commit
2d9748b1
authored
Jan 07, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass an IWineD3DResourceImpl pointer to resource_get_priority().
parent
a80749fd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
16 deletions
+20
-16
buffer.c
dlls/wined3d/buffer.c
+1
-1
cubetexture.c
dlls/wined3d/cubetexture.c
+3
-2
resource.c
dlls/wined3d/resource.c
+3
-4
surface_base.c
dlls/wined3d/surface_base.c
+3
-2
texture.c
dlls/wined3d/texture.c
+3
-2
volume.c
dlls/wined3d/volume.c
+3
-2
volumetexture.c
dlls/wined3d/volumetexture.c
+3
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/buffer.c
View file @
2d9748b1
...
...
@@ -785,7 +785,7 @@ static DWORD STDMETHODCALLTYPE buffer_SetPriority(IWineD3DBuffer *iface, DWORD p
static
DWORD
STDMETHODCALLTYPE
buffer_GetPriority
(
IWineD3DBuffer
*
iface
)
{
return
resource_get_priority
((
IWineD3DResource
*
)
iface
);
return
resource_get_priority
((
IWineD3DResource
Impl
*
)
iface
);
}
/* The caller provides a context and binds the buffer */
...
...
dlls/wined3d/cubetexture.c
View file @
2d9748b1
...
...
@@ -233,8 +233,9 @@ static DWORD WINAPI IWineD3DCubeTextureImpl_SetPriority(IWineD3DCubeTexture *ifa
return
resource_set_priority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetPriority
(
IWineD3DCubeTexture
*
iface
)
{
return
resource_get_priority
((
IWineD3DResource
*
)
iface
);
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetPriority
(
IWineD3DCubeTexture
*
iface
)
{
return
resource_get_priority
((
IWineD3DResourceImpl
*
)
iface
);
}
/* Do not call while under the GL lock. */
...
...
dlls/wined3d/resource.c
View file @
2d9748b1
...
...
@@ -259,11 +259,10 @@ DWORD resource_set_priority(IWineD3DResource *iface, DWORD PriorityNew)
return
PriorityOld
;
}
DWORD
resource_get_priority
(
IWineD3DResource
*
ifa
ce
)
DWORD
resource_get_priority
(
struct
IWineD3DResourceImpl
*
resour
ce
)
{
IWineD3DResourceImpl
*
This
=
(
IWineD3DResourceImpl
*
)
iface
;
TRACE
(
"(%p) : returning %d
\n
"
,
This
,
This
->
resource
.
priority
);
return
This
->
resource
.
priority
;
TRACE
(
"resource %p, returning %u.
\n
"
,
resource
,
resource
->
resource
.
priority
);
return
resource
->
resource
.
priority
;
}
WINED3DRESOURCETYPE
resource_get_type
(
IWineD3DResource
*
iface
)
...
...
dlls/wined3d/surface_base.c
View file @
2d9748b1
...
...
@@ -132,8 +132,9 @@ DWORD WINAPI IWineD3DBaseSurfaceImpl_SetPriority(IWineD3DSurface *iface, DWORD
return
resource_set_priority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
DWORD
WINAPI
IWineD3DBaseSurfaceImpl_GetPriority
(
IWineD3DSurface
*
iface
)
{
return
resource_get_priority
((
IWineD3DResource
*
)
iface
);
DWORD
WINAPI
IWineD3DBaseSurfaceImpl_GetPriority
(
IWineD3DSurface
*
iface
)
{
return
resource_get_priority
((
IWineD3DResourceImpl
*
)
iface
);
}
WINED3DRESOURCETYPE
WINAPI
IWineD3DBaseSurfaceImpl_GetType
(
IWineD3DSurface
*
iface
)
{
...
...
dlls/wined3d/texture.c
View file @
2d9748b1
...
...
@@ -258,8 +258,9 @@ static DWORD WINAPI IWineD3DTextureImpl_SetPriority(IWineD3DTexture *iface, DWOR
return
resource_set_priority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
static
DWORD
WINAPI
IWineD3DTextureImpl_GetPriority
(
IWineD3DTexture
*
iface
)
{
return
resource_get_priority
((
IWineD3DResource
*
)
iface
);
static
DWORD
WINAPI
IWineD3DTextureImpl_GetPriority
(
IWineD3DTexture
*
iface
)
{
return
resource_get_priority
((
IWineD3DResourceImpl
*
)
iface
);
}
/* Do not call while under the GL lock. */
...
...
dlls/wined3d/volume.c
View file @
2d9748b1
...
...
@@ -171,8 +171,9 @@ static DWORD WINAPI IWineD3DVolumeImpl_SetPriority(IWineD3DVolume *iface, DWORD
return
resource_set_priority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
static
DWORD
WINAPI
IWineD3DVolumeImpl_GetPriority
(
IWineD3DVolume
*
iface
)
{
return
resource_get_priority
((
IWineD3DResource
*
)
iface
);
static
DWORD
WINAPI
IWineD3DVolumeImpl_GetPriority
(
IWineD3DVolume
*
iface
)
{
return
resource_get_priority
((
IWineD3DResourceImpl
*
)
iface
);
}
/* Do not call while under the GL lock. */
...
...
dlls/wined3d/volumetexture.c
View file @
2d9748b1
...
...
@@ -178,8 +178,9 @@ static DWORD WINAPI IWineD3DVolumeTextureImpl_SetPriority(IWineD3DVolumeTexture
return
resource_set_priority
((
IWineD3DResource
*
)
iface
,
PriorityNew
);
}
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetPriority
(
IWineD3DVolumeTexture
*
iface
)
{
return
resource_get_priority
((
IWineD3DResource
*
)
iface
);
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetPriority
(
IWineD3DVolumeTexture
*
iface
)
{
return
resource_get_priority
((
IWineD3DResourceImpl
*
)
iface
);
}
static
void
WINAPI
IWineD3DVolumeTextureImpl_PreLoad
(
IWineD3DVolumeTexture
*
iface
)
...
...
dlls/wined3d/wined3d_private.h
View file @
2d9748b1
...
...
@@ -1830,7 +1830,7 @@ typedef struct IWineD3DResourceImpl
void
resource_cleanup
(
struct
IWineD3DResourceImpl
*
resource
)
DECLSPEC_HIDDEN
;
HRESULT
resource_free_private_data
(
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
)
DECLSPEC_HIDDEN
;
DWORD
resource_get_priority
(
IWineD3DResource
*
ifa
ce
)
DECLSPEC_HIDDEN
;
DWORD
resource_get_priority
(
struct
IWineD3DResourceImpl
*
resour
ce
)
DECLSPEC_HIDDEN
;
HRESULT
resource_get_private_data
(
struct
IWineD3DResourceImpl
*
resource
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
DECLSPEC_HIDDEN
;
HRESULT
resource_init
(
struct
IWineD3DResourceImpl
*
resource
,
WINED3DRESOURCETYPE
resource_type
,
...
...
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