Skip to content

Commit

Permalink
Fixed crash due to DrawingRequestData being cast to the wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 13, 2014
1 parent be6adf6 commit 82f8db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/gl/gl_lightmap.cpp
Expand Up @@ -148,7 +148,7 @@ GLLightmap::do_draw()
void
GLLightmap::draw_surface(const DrawingRequest& request)
{
const Surface* surface = (const Surface*) request.request_data;
const Surface* surface = static_cast<const SurfaceRequest*>(request.request_data)->surface;
boost::shared_ptr<GLTexture> gltexture = boost::dynamic_pointer_cast<GLTexture>(surface->get_texture());
GLSurfaceData *surface_data = reinterpret_cast<GLSurfaceData *>(surface->get_surface_data());

Expand Down

0 comments on commit 82f8db2

Please sign in to comment.