diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-03 14:03:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-03 14:03:20 +0200 |
commit | a93ca8021af8f3fc570cedce2e0bf639807b04e0 (patch) | |
tree | d7bd27218f2e42a4a4b55e5534c03600ee2dcdb8 /canvas | |
parent | d7f63439cb4c2436a5333643cec8f2d452ef6f74 (diff) |
loplugin:oncevar (clang-cl): canvas
Change-Id: I0fde86dbaa4bfa9377445800db176a82211aad17
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/directx/dx_9rm.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx index c12f64a9be05..ce1d7d03b6d2 100644 --- a/canvas/source/directx/dx_9rm.cxx +++ b/canvas/source/directx/dx_9rm.cxx @@ -531,10 +531,9 @@ namespace dxcanvas maPageSize=aPageSize; IDirect3DVertexBuffer9 *pVB(nullptr); - DWORD aFVF(D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1); if( FAILED(mpDevice->CreateVertexBuffer(sizeof(dxvertex)*maNumVertices, D3DUSAGE_DYNAMIC|D3DUSAGE_WRITEONLY, - aFVF, + D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1, D3DPOOL_DEFAULT, &pVB, nullptr)) ) @@ -864,10 +863,9 @@ namespace dxcanvas if(SUCCEEDED(hr)) { IDirect3DVertexBuffer9 *pVB(nullptr); - DWORD aFVF(D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1); if( FAILED(mpDevice->CreateVertexBuffer(sizeof(dxvertex)*maNumVertices, D3DUSAGE_DYNAMIC|D3DUSAGE_WRITEONLY, - aFVF, + D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1, D3DPOOL_DEFAULT, &pVB, nullptr)) ) |