From: mathnerd314 Date: Thu, 4 Mar 2010 02:41:22 +0000 (+0000) Subject: Use static casts in GL::Renderer X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=add773d5a2a1281cc17eb6b1bcb26cc263e9c76a;p=supertux.git Use static casts in GL::Renderer git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6538 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- 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,