diff options
author | José Fonseca <[email protected]> | 2012-02-08 15:58:37 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-02-10 16:23:27 +0000 |
commit | 0cf554fa9b31dbac1890f496974392001e2df825 (patch) | |
tree | 2b8c964445a8e8c17fb27d5be7fb1d1d7781412f /src/gallium/state_trackers/wgl/stw_framebuffer.c | |
parent | 6beed86ab8970b57aad8442a3e6bf6410fff13ec (diff) |
st/wgl: Just pass pPixelFormat to stw_pixelformat_get_info().
Avoids the likely error of forgetting to subtract one.
Diffstat (limited to 'src/gallium/state_trackers/wgl/stw_framebuffer.c')
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_framebuffer.c b/src/gallium/state_trackers/wgl/stw_framebuffer.c index f595efe03f4..71b92f0d8f6 100644 --- a/src/gallium/state_trackers/wgl/stw_framebuffer.c +++ b/src/gallium/state_trackers/wgl/stw_framebuffer.c @@ -262,7 +262,7 @@ stw_framebuffer_create( fb->hWnd = hWnd; fb->iPixelFormat = iPixelFormat; - fb->pfi = pfi = stw_pixelformat_get_info( iPixelFormat - 1 ); + fb->pfi = pfi = stw_pixelformat_get_info( iPixelFormat ); fb->stfb = stw_st_create_framebuffer( fb ); if (!fb->stfb) { FREE( fb ); |