H. Verbeet : wined3d: Get rid of a redundant local variable.
Alexandre Julliard
julliard at winehq.org
Wed Jul 2 06:03:29 CDT 2008
Module: wine
Branch: master
Commit: a1a14fb2c33ed729641979e65e8b7859732ff221
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a1a14fb2c33ed729641979e65e8b7859732ff221
Author: H. Verbeet <hverbeet at gmail.com>
Date: Tue Jul 1 21:29:45 2008 +0200
wined3d: Get rid of a redundant local variable.
---
dlls/wined3d/device.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index f7301d7..e3fa816 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6464,11 +6464,10 @@ static void set_depth_stencil_fbo(IWineD3DDevice *iface, IWineD3DSurface *depth_
static void set_render_target_fbo(IWineD3DDevice *iface, DWORD idx, IWineD3DSurface *render_target) {
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
- IWineD3DSurfaceImpl *rtimpl = (IWineD3DSurfaceImpl *)render_target;
TRACE("Set render target %u to %p\n", idx, render_target);
- if (rtimpl) {
+ if (render_target) {
attach_surface_fbo(This, GL_FRAMEBUFFER_EXT, idx, render_target);
This->draw_buffers[idx] = GL_COLOR_ATTACHMENT0_EXT + idx;
} else {
More information about the wine-cvs
mailing list