mirror of https://github.com/encounter/SDL.git
Patched to compile on C89 compilers.
This commit is contained in:
parent
3c9361509b
commit
b744108af8
|
@ -1546,6 +1546,7 @@ D3D_Reset(SDL_Renderer * renderer)
|
||||||
D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
|
D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
|
||||||
HRESULT result;
|
HRESULT result;
|
||||||
SDL_Texture *texture;
|
SDL_Texture *texture;
|
||||||
|
int i;
|
||||||
|
|
||||||
/* Release the default render target before reset */
|
/* Release the default render target before reset */
|
||||||
if (data->defaultRenderTarget) {
|
if (data->defaultRenderTarget) {
|
||||||
|
@ -1567,7 +1568,6 @@ D3D_Reset(SDL_Renderer * renderer)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Release all vertex buffers */
|
/* Release all vertex buffers */
|
||||||
int i;
|
|
||||||
for (i = 0; i < SDL_arraysize(data->vertexBuffers); ++i) {
|
for (i = 0; i < SDL_arraysize(data->vertexBuffers); ++i) {
|
||||||
if (data->vertexBuffers[i]) {
|
if (data->vertexBuffers[i]) {
|
||||||
IDirect3DVertexBuffer9_Release(data->vertexBuffers[i]);
|
IDirect3DVertexBuffer9_Release(data->vertexBuffers[i]);
|
||||||
|
|
Loading…
Reference in New Issue