wgl: Remove unused cruft.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Mar 2009 21:38:54 +0000 (21:38 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 27 Mar 2009 21:38:54 +0000 (21:38 +0000)
src/gallium/state_trackers/wgl/shared/stw_context.c
src/gallium/state_trackers/wgl/shared/stw_framebuffer.c
src/gallium/state_trackers/wgl/shared/stw_framebuffer.h

index 89df8b0a2a0340ed44fba313d9899c9e0459cbe7..82aabe0a7ee025285771e1ee018b742d5fe74902 100644 (file)
@@ -317,10 +317,6 @@ stw_make_current(
       fb = framebuffer_create( hdc, visual, width, height );
       if (fb == NULL)
          return FALSE;
-
-      fb->dib_hDC = CreateCompatibleDC( hdc );
-      fb->hbmDIB = NULL;
-      fb->pbPixels = NULL;
    }
 
    if (ctx && fb) {
index 024c9ad36af01044719b9762b26fbf028576f878..2f0d8cbc318c36112b233198be39c8e7432cd657 100644 (file)
@@ -44,16 +44,6 @@ framebuffer_resize(
    GLuint width,
    GLuint height )
 {
-   if (fb->hbmDIB == NULL || fb->stfb->Base.Width != width || fb->stfb->Base.Height != height) {
-      if (fb->hbmDIB)
-         DeleteObject( fb->hbmDIB );
-
-      fb->hbmDIB = CreateCompatibleBitmap(
-         fb->hDC,
-         width,
-         height );
-   }
-
    st_resize_framebuffer( fb->stfb, width, height );
 }
 
index 2e16e421f2ca4c6d15aaa2f3671473f7d2379894..5abdf189970ae86d768dabcbfaa4d93c573fdab2 100644 (file)
@@ -36,12 +36,7 @@ struct stw_framebuffer
 {
    struct st_framebuffer *stfb;
    HDC hDC;
-   int pixelformat;
    BYTE cColorBits;
-   HDC dib_hDC;
-   HBITMAP hbmDIB;
-   HBITMAP hOldBitmap;
-   PBYTE pbPixels;
    HWND hWnd;
    WNDPROC WndProc;
    struct stw_framebuffer *next;