i965/dri: Combine declaration and assignment in intelCreateBuffer
Trivial cleanup. Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
85dd3e4de1
commit
e8a0a5d7f9
|
@ -1169,12 +1169,11 @@ intelCreateBuffer(__DRIscreen *dri_screen,
|
|||
mesa_format rgbFormat;
|
||||
unsigned num_samples =
|
||||
intel_quantize_num_samples(screen, mesaVis->samples);
|
||||
struct gl_framebuffer *fb;
|
||||
|
||||
if (isPixmap)
|
||||
return false;
|
||||
|
||||
fb = CALLOC_STRUCT(gl_framebuffer);
|
||||
struct gl_framebuffer *fb = CALLOC_STRUCT(gl_framebuffer);
|
||||
if (!fb)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue