]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix RTG with HW cursor crash when exiting
authorToni Wilen <twilen@winuae.net>
Thu, 13 Apr 2023 17:33:20 +0000 (20:33 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 13 Apr 2023 17:33:20 +0000 (20:33 +0300)
od-win32/direct3d11.cpp

index 2a0404ebd052dc259b79f7d1b5ad665041d68df6..476a64361f05b15bc01add79a7eca4f98a16cc2a 100644 (file)
@@ -5254,6 +5254,10 @@ static void updatecursorsurface(int monid)
        int width = sp->width;
        int height = sp->height;
 
+       if (sp->texture == NULL) {
+               return;
+       }
+
        if (sp->updated && cx >= 0 && cy >= 0 && cx + width <= d3d->m_bitmapWidth && cy + height <= d3d->m_bitmapHeight) {
                return;
        }