Fix crash on frame dupes in D3D9.

This commit is contained in:
Themaister 2012-11-10 13:57:21 +01:00
parent 3a473dfec2
commit ca44dee735
1 changed files with 3 additions and 0 deletions

View File

@ -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.