mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 14:23:06 +00:00
Revert "Create d3d_vertex_declaration_free"
This reverts commit 5c0cb15856209e501c227e9ca3eb6a6e1c6cf168.
This commit is contained in:
parent
a5c6629ec2
commit
ca3ea65332
@ -1249,11 +1249,9 @@ static void d3d_overlay_render(d3d_video_t *d3d, overlay_t *overlay)
|
|||||||
d3d_enable_blend_func(d3d->dev);
|
d3d_enable_blend_func(d3d->dev);
|
||||||
|
|
||||||
#ifndef _XBOX1
|
#ifndef _XBOX1
|
||||||
if (d3d_vertex_declaration_new(d3d->dev, vElems, &vertex_decl))
|
d3d->dev->CreateVertexDeclaration(vElems, &vertex_decl);
|
||||||
{
|
d3d_set_vertex_declaration(d3d->dev, vertex_decl);
|
||||||
d3d_set_vertex_declaration(d3d->dev, vertex_decl);
|
vertex_decl->Release();
|
||||||
d3d_vertex_declaration_free(vertex_decl);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
d3d_set_stream_source(d3d->dev, 0, overlay->vert_buf,
|
d3d_set_stream_source(d3d->dev, 0, overlay->vert_buf,
|
||||||
|
@ -105,16 +105,6 @@ void d3d_texture_free(LPDIRECT3DTEXTURE tex)
|
|||||||
tex = NULL;
|
tex = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void d3d_vertex_declaration_free(void *data)
|
|
||||||
{
|
|
||||||
LPDIRECT3DVERTEXDECLARATION *vertex_decl = (LPDIRECT3DVERTEXDECLARATION*)data;
|
|
||||||
|
|
||||||
if (!vertex_decl)
|
|
||||||
return;
|
|
||||||
|
|
||||||
vertex_decl->Release();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool d3d_vertex_declaration_new(LPDIRECT3DDEVICE dev,
|
bool d3d_vertex_declaration_new(LPDIRECT3DDEVICE dev,
|
||||||
const void *vertex_data, void **decl_data)
|
const void *vertex_data, void **decl_data)
|
||||||
{
|
{
|
||||||
|
@ -104,8 +104,6 @@ void d3d_disable_blend_func(void *data);
|
|||||||
|
|
||||||
void d3d_set_vertex_declaration(void *data, void *vertex_data);
|
void d3d_set_vertex_declaration(void *data, void *vertex_data);
|
||||||
|
|
||||||
void d3d_vertex_declaration_free(void *data);
|
|
||||||
|
|
||||||
void d3d_enable_alpha_blend_texture_func(void *data);
|
void d3d_enable_alpha_blend_texture_func(void *data);
|
||||||
|
|
||||||
void d3d_frame_postprocess(void *data);
|
void d3d_frame_postprocess(void *data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user