summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-09 13:17:49 -0600
committerBrian <[email protected]>2007-08-09 14:29:48 -0600
commit3e930c3f1fe1deebd0cb976070155f5c55d55b6f (patch)
tree4a4567be16f787663c15b645b6bc3014c73a814f /src
parenta4517215ca98066c70155432ebfc578e6412d6de (diff)
minor clean-ups
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_screen.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_screen.c b/src/mesa/drivers/dri/intel_winsys/intel_screen.c
index b765c2b4b2c..4c99f2ed5fd 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_screen.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_screen.c
@@ -290,7 +290,6 @@ intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
GLenum rgbFormat = (mesaVis->redBits == 5 ? GL_RGB5 : GL_RGBA8);
struct intel_framebuffer *intel_fb = CALLOC_STRUCT(intel_framebuffer);
-
if (!intel_fb)
return GL_FALSE;
@@ -300,14 +299,12 @@ intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
/* fake frontbuffer */
/* XXX allocation should only happen in the unusual case
it's actually needed */
- struct gl_renderbuffer *rb
- = st_new_renderbuffer_fb(rgbFormat);
+ struct gl_renderbuffer *rb = st_new_renderbuffer_fb(rgbFormat);
_mesa_add_renderbuffer(&intel_fb->Base, BUFFER_FRONT_LEFT, rb);
}
if (mesaVis->doubleBufferMode) {
- struct gl_renderbuffer *rb
- = st_new_renderbuffer_fb(rgbFormat);
+ struct gl_renderbuffer *rb = st_new_renderbuffer_fb(rgbFormat);
_mesa_add_renderbuffer(&intel_fb->Base, BUFFER_BACK_LEFT, rb);
}
@@ -316,10 +313,8 @@ intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
struct gl_renderbuffer *depthStencilRb
= st_new_renderbuffer_fb(GL_DEPTH24_STENCIL8_EXT);
/* note: bind RB to two attachment points */
- _mesa_add_renderbuffer(&intel_fb->Base, BUFFER_DEPTH,
- depthStencilRb);
- _mesa_add_renderbuffer(&intel_fb->Base, BUFFER_STENCIL,
- depthStencilRb);
+ _mesa_add_renderbuffer(&intel_fb->Base, BUFFER_DEPTH, depthStencilRb);
+ _mesa_add_renderbuffer(&intel_fb->Base, BUFFER_STENCIL,depthStencilRb);
}
else if (mesaVis->depthBits == 16) {
/* just 16-bit depth buffer, no hw stencil */