]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
d3d not good enough hardware message
authorToni Wilen <twilen@winuae.net>
Fri, 26 Feb 2010 17:23:05 +0000 (19:23 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 26 Feb 2010 17:23:05 +0000 (19:23 +0200)
od-win32/direct3d.cpp

index 8c1ea873dfe83c587d6435a2c8e6fff87a45b083..1450a81738e92c98a20ea0cf74a6a8c2a34d7967 100644 (file)
@@ -1283,6 +1283,11 @@ const TCHAR *D3D_init (HWND ahwnd, int w_w, int w_h, int t_w, int t_h, int depth
        LPDIRECT3DCREATE9EX d3dexp = NULL;
 
        D3D_free2 ();
+       if (D3D_goodenough () <= 0) {
+               _tcscpy (errmsg, L"Direct3D: Pixel and Vertex shader 1.0 or newer support required");
+               return errmsg;
+       }
+
        D3D_canshaders ();
        d3d_enabled = 0;
        if (!currprefs.gfx_api) {
@@ -1426,7 +1431,7 @@ const TCHAR *D3D_init (HWND ahwnd, int w_w, int w_h, int t_w, int t_h, int depth
        max_texture_w = d3dCaps.MaxTextureWidth;
        max_texture_h = d3dCaps.MaxTextureHeight;
 
-       write_log (L"%s:", D3DHEAD);
+       write_log (L"%s: ", D3DHEAD);
        if (d3dCaps.TextureCaps & D3DPTEXTURECAPS_SQUAREONLY)
                write_log (L"SQUAREONLY ");
        if (d3dCaps.TextureCaps & D3DPTEXTURECAPS_POW2)