mesa: Factor out the fb initialization details from _mesa_new_framebuffer.
This should make things easier for drivers wanting to work with a "subclass" of gl_framebuffer. The complementary "_mesa_initialize_framebuffer" function is now called "_mesa_initialize_window_framebuffer" for the sake of symmetry. Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:

committed by
Brian Paul

parent
64da2aeebc
commit
2ec50d256d
@@ -202,7 +202,7 @@ intelCreateBuffer(__DRIscreen * driScrnPriv,
|
||||
if (!fb)
|
||||
return GL_FALSE;
|
||||
|
||||
_mesa_initialize_framebuffer(fb, mesaVis);
|
||||
_mesa_initialize_window_framebuffer(fb, mesaVis);
|
||||
|
||||
if (mesaVis->redBits == 5)
|
||||
rgbFormat = MESA_FORMAT_RGB565;
|
||||
|
Reference in New Issue
Block a user