(D3D) Have more functions go through d3d_wrapper

This commit is contained in:
twinaphex 2014-09-12 08:08:04 +02:00
parent fa27c8884d
commit 7fc59210b1

View File

@ -334,7 +334,7 @@ static bool texture_image_render(void *data,
/* Draw the quad. */
d3dr->SetTexture(0, out_img->pixels);
D3DDevice_SetStreamSources(d3dr, 0,
d3d_set_stream_source(d3dr, 0,
out_img->vertex_buf, 0, sizeof(Vertex));
d3dr->SetVertexShader(D3DFVF_CUSTOMVERTEX);
@ -349,7 +349,7 @@ static bool texture_image_render(void *data,
vp.MaxZ = 1.0f;
d3dr->SetViewport(&vp);
}
D3DDevice_DrawPrimitive(d3dr, D3DPT_QUADLIST, 0, 1);
d3d_draw_primitive(d3dr, D3DPT_QUADLIST, 0, 1);
return true;
}