Use static casts in GL::Renderer
authorMathnerd314 <man.is.allan@gmail.com>
Thu, 4 Mar 2010 02:41:22 +0000 (02:41 +0000)
committerMathnerd314 <man.is.allan@gmail.com>
Thu, 4 Mar 2010 02:41:22 +0000 (02:41 +0000)
SVN-Revision: 6538

src/video/gl/gl_renderer.cpp

index 41e9131..2642788 100644 (file)
@@ -113,8 +113,8 @@ void
 GLRenderer::draw_surface(const DrawingRequest& request)
 {
   const Surface* surface = (const Surface*) request.request_data;
-  boost::shared_ptr<GLTexture> gltexture = boost::dynamic_pointer_cast<GLTexture>(surface->get_texture());
-  GLSurfaceData *surface_data = reinterpret_cast<GLSurfaceData *>(surface->get_surface_data());
+  GLTexture* gltexture = static_cast<GLTexture*>(surface->get_texture().get());
+  GLSurfaceData *surface_data = static_cast<GLSurfaceData*>(surface->get_surface_data());
 
   glBindTexture(GL_TEXTURE_2D, gltexture->get_handle());
   intern_draw(request.pos.x, request.pos.y,