Skip to content

Commit

Permalink
Use static casts in GL::Renderer
Browse files Browse the repository at this point in the history
SVN-Revision: 6538
  • Loading branch information
Mathnerd314 committed Mar 4, 2010
1 parent 8969e1a commit 8d51832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/gl/gl_renderer.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 8d51832

Please sign in to comment.