From eec9125b58cef9b44fcf44522970ea5b126eb6d6 Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Wed, 8 Feb 2006 19:57:11 +0000 Subject: [PATCH] fix DCAST problem --- panda/src/mesadisplay/osMesaGraphicsBuffer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/mesadisplay/osMesaGraphicsBuffer.cxx b/panda/src/mesadisplay/osMesaGraphicsBuffer.cxx index aebe0e4a7d..10ce44518b 100644 --- a/panda/src/mesadisplay/osMesaGraphicsBuffer.cxx +++ b/panda/src/mesadisplay/osMesaGraphicsBuffer.cxx @@ -32,7 +32,7 @@ OsMesaGraphicsBuffer:: OsMesaGraphicsBuffer(GraphicsPipe *pipe, GraphicsStateGuardian *gsg, const string &name, int x_size, int y_size) : - GraphicsBuffer(pipe, gsg, name, x_size, y_size) + GraphicsBuffer(pipe, gsg, name, x_size, y_size) { _type = GL_UNSIGNED_BYTE; } @@ -63,7 +63,7 @@ begin_frame(FrameMode mode) { } OSMesaGraphicsStateGuardian *mesagsg; - DCAST_INTO_V(mesagsg, _gsg); + DCAST_INTO_R(mesagsg, _gsg, false); OSMesaMakeCurrent(mesagsg->_context, _image.p(), _type, _x_size, _y_size);