wined3d: Get rid of the useless "isPBuffer" bitfield in struct wined3d_context.
authorHenri Verbeet <hverbeet@codeweavers.com>
Tue, 20 Oct 2009 09:05:03 +0000 (11:05 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 20 Oct 2009 12:00:36 +0000 (14:00 +0200)
dlls/wined3d/context.c
dlls/wined3d/wined3d_private.h

index c6d6df82c98ae674dac549af28446ecdbef1fdba..701e024093da4cd354c03ec1a4189b0dc04626d2 100644 (file)
@@ -698,7 +698,7 @@ static void context_destroy_gl_resources(struct wined3d_context *context)
         ERR("Failed to disable GL context.\n");
     }
 
-    if (context->isPBuffer)
+    if (context->pbuffer)
     {
         GL_EXTCALL(wglReleasePbufferDCARB(context->pbuffer, context->hdc));
         GL_EXTCALL(wglDestroyPbufferARB(context->pbuffer));
@@ -1250,7 +1250,6 @@ struct wined3d_context *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceI
     ret->gl_info = &This->adapter->gl_info;
     ret->surface = (IWineD3DSurface *) target;
     ret->current_rt = (IWineD3DSurface *)target;
-    ret->isPBuffer = create_pbuffer;
     ret->tid = GetCurrentThreadId();
     if(This->shader_backend->shader_dirtifyable_constants((IWineD3DDevice *) This)) {
         /* Create the dirty constants array and initialize them to dirty */
index c9097cff9bef9f90b5390fcf8ef7d2e5ea526d5c..4b6cb4ca679cd4e7eadbc281c97d0b09e7369970 100644 (file)
@@ -1051,7 +1051,6 @@ struct wined3d_context
     WORD last_was_blit : 1;
     WORD last_was_ckey : 1;
     WORD fog_coord : 1;
-    WORD isPBuffer : 1;
     WORD fog_enabled : 1;
     WORD num_untracked_materials : 2;   /* Max value 2 */
     WORD current : 1;