direct3d: Use D3DPOOL_MANAGED for vertex buffers.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 11 Jun 2019 13:02:56 -0400
changeset 12835706e38de05c9
parent 12834 75dad4c8914e
child 12836 32839175c0e4
direct3d: Use D3DPOOL_MANAGED for vertex buffers.

Fixes Bugzilla #4537.
src/render/direct3d/SDL_render_d3d.c
     1.1 --- a/src/render/direct3d/SDL_render_d3d.c	Tue Jun 11 08:33:30 2019 -0700
     1.2 +++ b/src/render/direct3d/SDL_render_d3d.c	Tue Jun 11 13:02:56 2019 -0400
     1.3 @@ -1216,7 +1216,7 @@
     1.4              IDirect3DVertexBuffer9_Release(vbo);
     1.5          }
     1.6  
     1.7 -        if (FAILED(IDirect3DDevice9_CreateVertexBuffer(data->device, (UINT) vertsize, usage, fvf, D3DPOOL_DEFAULT, &vbo, NULL))) {
     1.8 +        if (FAILED(IDirect3DDevice9_CreateVertexBuffer(data->device, (UINT) vertsize, usage, fvf, D3DPOOL_MANAGED, &vbo, NULL))) {
     1.9              vbo = NULL;
    1.10          }
    1.11          data->vertexBuffers[vboidx] = vbo;