diff options
Diffstat (limited to 'src/radeon_accel.c')
-rw-r--r-- | src/radeon_accel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_accel.c b/src/radeon_accel.c index 028f2727..ac422571 100644 --- a/src/radeon_accel.c +++ b/src/radeon_accel.c @@ -712,6 +712,10 @@ RADEONHostDataBlitCopyPass( unsigned int dstPitch, unsigned int srcPitch ){ + + /* RADEONHostDataBlitCopy can return NULL ! */ + if( (dst==NULL) || (src==NULL)) return; + if ( dstPitch == srcPitch ) { memcpy( dst, src, hpass * dstPitch ); |