mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Rename d3dxbuffer_release
This commit is contained in:
parent
45cea92ba2
commit
32c92a9a22
@ -502,7 +502,7 @@ bool d3d9x_create_font_indirect(void *_dev,
|
||||
return false;
|
||||
}
|
||||
|
||||
void d3dxbuffer_release(void *data)
|
||||
void d3d9x_buffer_release(void *data)
|
||||
{
|
||||
#ifdef HAVE_D3DX
|
||||
LPD3DXBUFFER p = (LPD3DXBUFFER)data;
|
||||
|
@ -598,7 +598,7 @@ void d3d9x_font_draw_text(void *data, void *sprite_data, void *string_data,
|
||||
|
||||
void d3d9x_font_get_text_metrics(void *data, void *metrics);
|
||||
|
||||
void d3dxbuffer_release(void *data);
|
||||
void d3d9x_buffer_release(void *data);
|
||||
|
||||
void d3d9x_font_release(void *data);
|
||||
|
||||
|
@ -451,7 +451,7 @@ static bool xdk360_video_font_create_shaders(xdk360_video_font_t * font, void *d
|
||||
(void**)&font->s_FontLocals.m_pFontVertexShader ))
|
||||
goto error;
|
||||
|
||||
d3dxbuffer_release(pShaderCode);
|
||||
d3d9x_buffer_release(pShaderCode);
|
||||
|
||||
if (!d3dx_compile_shader(font_hlsl_d3d9_program, sizeof(font_hlsl_d3d9_program)-1 ,
|
||||
NULL, NULL, "main_fragment", "ps.2.0", 0,&pShaderCode, NULL, NULL ))
|
||||
@ -461,13 +461,13 @@ static bool xdk360_video_font_create_shaders(xdk360_video_font_t * font, void *d
|
||||
(void**)&font->s_FontLocals.m_pFontPixelShader))
|
||||
goto error;
|
||||
|
||||
d3dxbuffer_release(pShaderCode);
|
||||
d3d9x_buffer_release(pShaderCode);
|
||||
|
||||
return true;
|
||||
|
||||
error:
|
||||
if (pShaderCode)
|
||||
d3dxbuffer_release(pShaderCode);
|
||||
d3d9x_buffer_release(pShaderCode);
|
||||
d3d9_free_pixel_shader(font->d3d->dev, font->s_FontLocals.m_pFontPixelShader);
|
||||
d3d9_free_vertex_shader(font->d3d->dev, font->s_FontLocals.m_pFontVertexShader);
|
||||
d3d9_vertex_declaration_free(font->s_FontLocals.m_pFontVertexDecl);
|
||||
|
@ -273,8 +273,8 @@ static bool hlsl_compile_program(
|
||||
|
||||
d3d_create_pixel_shader(d3dr, (const DWORD*)d3dx_get_buffer_ptr(code_f), (void**)&program->fprg);
|
||||
d3d_create_vertex_shader(d3dr, (const DWORD*)d3dx_get_buffer_ptr(code_v), (void**)&program->vprg);
|
||||
d3dxbuffer_release((void*)code_f);
|
||||
d3dxbuffer_release((void*)code_v);
|
||||
d3d9x_buffer_release((void*)code_f);
|
||||
d3d9x_buffer_release((void*)code_v);
|
||||
|
||||
return true;
|
||||
|
||||
@ -284,8 +284,8 @@ error:
|
||||
RARCH_ERR("Fragment:\n%s\n", (char*)d3dx_get_buffer_ptr(listing_f));
|
||||
if (listing_v)
|
||||
RARCH_ERR("Vertex:\n%s\n", (char*)d3dx_get_buffer_ptr(listing_v));
|
||||
d3dxbuffer_release((void*)listing_f);
|
||||
d3dxbuffer_release((void*)listing_v);
|
||||
d3d9x_buffer_release((void*)listing_f);
|
||||
d3d9x_buffer_release((void*)listing_v);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user