Skip to content

Commit

Permalink
Fix crash on frame dupes in D3D9.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Nov 10, 2012
1 parent 3a473df commit ca44dee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gfx/d3d9/d3d9.cpp
Expand Up @@ -468,6 +468,9 @@ bool D3DVideo::frame(const void *frame,
unsigned width, unsigned height, unsigned pitch,
const char *msg)
{
if (!frame)
return true;

RARCH_PERFORMANCE_INIT(d3d_frame);
RARCH_PERFORMANCE_START(d3d_frame);
// We cannot recover in fullscreen.
Expand Down

0 comments on commit ca44dee

Please sign in to comment.