From 8d518324caed9fe0590be4212f2a35e883db4773 Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Thu, 4 Mar 2010 02:41:22 +0000 Subject: [PATCH] Use static casts in GL::Renderer SVN-Revision: 6538 --- src/video/gl/gl_renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/gl/gl_renderer.cpp b/src/video/gl/gl_renderer.cpp index 41e9131de..264278885 100644 --- a/src/video/gl/gl_renderer.cpp +++ b/src/video/gl/gl_renderer.cpp @@ -113,8 +113,8 @@ void GLRenderer::draw_surface(const DrawingRequest& request) { const Surface* surface = (const Surface*) request.request_data; - boost::shared_ptr gltexture = boost::dynamic_pointer_cast(surface->get_texture()); - GLSurfaceData *surface_data = reinterpret_cast(surface->get_surface_data()); + GLTexture* gltexture = static_cast(surface->get_texture().get()); + GLSurfaceData *surface_data = static_cast(surface->get_surface_data()); glBindTexture(GL_TEXTURE_2D, gltexture->get_handle()); intern_draw(request.pos.x, request.pos.y, -- 2.11.0