diff options
author | Brian Paul <[email protected]> | 2006-10-17 17:51:39 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-10-17 17:51:39 +0000 |
commit | 42b26f688d82b2023ea882bfa1fd13bb6548d73a (patch) | |
tree | ee2e60f3beac0fb1d3c318267373d47deea9e747 /src/mesa/drivers/x11/xm_dd.c | |
parent | 544b94e15617fb69f77ebd57b1be49aafe2f64e6 (diff) |
Remove get_buffer_size()
Always check window size in XMesaMakeCurrent() in case glViewport is not
called.
Diffstat (limited to 'src/mesa/drivers/x11/xm_dd.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_dd.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index df2fc48e93b..76195e17e47 100644 --- a/src/mesa/drivers/x11/xm_dd.c +++ b/src/mesa/drivers/x11/xm_dd.c @@ -94,15 +94,6 @@ const int xmesa_kernel1[16] = { }; -/** XXX obsolete ***/ -static void -get_buffer_size( GLframebuffer *buffer, GLuint *width, GLuint *height ) -{ - XMesaBuffer b = XMESA_BUFFER(buffer); - xmesa_get_window_size(b->display, b, width, height); -} - - static void finish_or_flush( GLcontext *ctx ) { @@ -1176,7 +1167,7 @@ xmesa_init_driver_functions( XMesaVisual xmvisual, { driver->GetString = get_string; driver->UpdateState = xmesa_update_state; - driver->GetBufferSize = get_buffer_size; + driver->GetBufferSize = NULL; /* OBSOLETE */ driver->Flush = finish_or_flush; driver->Finish = finish_or_flush; driver->ClearIndex = clear_index; |