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
ea2f7a27
Commit
ea2f7a27
authored
Dec 29, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove some redundant returns.
parent
67cba487
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
24 deletions
+3
-24
buffer.c
dlls/wined3d/buffer.c
+0
-3
device.c
dlls/wined3d/device.c
+3
-12
state.c
dlls/wined3d/state.c
+0
-4
surface.c
dlls/wined3d/surface.c
+0
-4
surface_base.c
dlls/wined3d/surface_base.c
+0
-1
No files found.
dlls/wined3d/buffer.c
View file @
ea2f7a27
...
...
@@ -134,8 +134,6 @@ fail:
if
(
This
->
buffer_object
)
GL_EXTCALL
(
glDeleteBuffersARB
(
1
,
&
This
->
buffer_object
));
This
->
buffer_object
=
0
;
LEAVE_GL
();
return
;
}
static
BOOL
buffer_process_converted_attribute
(
struct
wined3d_buffer
*
This
,
...
...
@@ -936,7 +934,6 @@ static void STDMETHODCALLTYPE buffer_PreLoad(IWineD3DBuffer *iface)
end:
context_release
(
context
);
return
;
}
static
WINED3DRESOURCETYPE
STDMETHODCALLTYPE
buffer_GetType
(
IWineD3DBuffer
*
iface
)
...
...
dlls/wined3d/device.c
View file @
ea2f7a27
...
...
@@ -1297,14 +1297,9 @@ static void IWineD3DDeviceImpl_LoadLogo(IWineD3DDeviceImpl *This, const char *fi
IWineD3DDevice_ColorFill
((
IWineD3DDevice
*
)
This
,
This
->
logo_surface
,
NULL
,
0xffffffff
);
}
out:
if
(
dcb
)
{
DeleteDC
(
dcb
);
}
if
(
hbm
)
{
DeleteObject
(
hbm
);
}
return
;
out:
if
(
dcb
)
DeleteDC
(
dcb
);
if
(
hbm
)
DeleteObject
(
hbm
);
}
/* Context activation is done by the caller. */
...
...
@@ -1809,8 +1804,6 @@ static void WINAPI IWineD3DDeviceImpl_SetMultithreaded(IWineD3DDevice *iface) {
/*For now just store the flag(needed in case of ddraw) */
This
->
createParms
.
BehaviorFlags
|=
WINED3DCREATE_MULTITHREADED
;
return
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetDisplayMode
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
...
...
@@ -6631,7 +6624,6 @@ static void WINAPI IWineD3DDeviceImpl_SetGammaRamp(IWineD3DDevice * iface, UINT
IWineD3DSwapChain_SetGammaRamp
(
swapchain
,
Flags
,
pRamp
);
IWineD3DSwapChain_Release
(
swapchain
);
}
return
;
}
static
void
WINAPI
IWineD3DDeviceImpl_GetGammaRamp
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
WINED3DGAMMARAMP
*
pRamp
)
{
...
...
@@ -6643,7 +6635,6 @@ static void WINAPI IWineD3DDeviceImpl_GetGammaRamp(IWineD3DDevice *iface, UINT i
IWineD3DSwapChain_GetGammaRamp
(
swapchain
,
pRamp
);
IWineD3DSwapChain_Release
(
swapchain
);
}
return
;
}
...
...
dlls/wined3d/state.c
View file @
ea2f7a27
...
...
@@ -4473,8 +4473,6 @@ static inline void drawPrimitiveTraceDataLocations(const struct wined3d_stream_i
TRACE_STRIDED
((
dataLocations
),
WINED3D_FFP_TEXCOORD5
);
TRACE_STRIDED
((
dataLocations
),
WINED3D_FFP_TEXCOORD6
);
TRACE_STRIDED
((
dataLocations
),
WINED3D_FFP_TEXCOORD7
);
return
;
}
static
void
streamsrc
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
wined3d_context
*
context
)
...
...
@@ -4878,8 +4876,6 @@ static void light(DWORD state, IWineD3DStateBlockImpl *stateblock, struct wined3
glEnable
(
GL_LIGHT0
+
Index
);
checkGLcall
(
"glEnable(GL_LIGHT0 + Index)"
);
}
return
;
}
static
void
scissorrect
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
wined3d_context
*
context
)
...
...
dlls/wined3d/surface.c
View file @
ea2f7a27
...
...
@@ -809,7 +809,6 @@ void surface_internal_preload(IWineD3DSurface *iface, enum WINED3DSRGB srgb)
if
(
context
)
context_release
(
context
);
}
return
;
}
static
void
WINAPI
IWineD3DSurfaceImpl_PreLoad
(
IWineD3DSurface
*
iface
)
{
...
...
@@ -928,8 +927,6 @@ static void WINAPI IWineD3DSurfaceImpl_UnLoad(IWineD3DSurface *iface) {
}
context_release
(
context
);
return
;
}
/* ******************************************************
...
...
@@ -2757,7 +2754,6 @@ static void WINAPI IWineD3DSurfaceImpl_BindTexture(IWineD3DSurface *iface, BOOL
if
(
context
)
context_release
(
context
);
}
return
;
}
#include <errno.h>
...
...
dlls/wined3d/surface_base.c
View file @
ea2f7a27
...
...
@@ -1866,7 +1866,6 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED3DL
void
WINAPI
IWineD3DBaseSurfaceImpl_BindTexture
(
IWineD3DSurface
*
iface
,
BOOL
srgb
)
{
ERR
(
"Should not be called on base texture
\n
"
);
return
;
}
/* TODO: think about moving this down to resource? */
...
...
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