mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(XDK D3D) Do Clear at start of xdk_d3d_frame
This commit is contained in:
parent
2cef7466a8
commit
e7db869f69
@ -212,8 +212,6 @@ static void xdk_d3d_set_viewport(bool force_full)
|
||||
int m_viewport_x_temp, m_viewport_y_temp, m_viewport_width_temp, m_viewport_height_temp;
|
||||
float m_zNear, m_zFar;
|
||||
|
||||
RD3DDevice_Clear(d3dr, 0, NULL, D3DCLEAR_TARGET, 0xff000000, 1.0f, 0);
|
||||
|
||||
d3d->ctx_driver->get_video_size(&width, &height);
|
||||
m_viewport_x_temp = 0;
|
||||
m_viewport_y_temp = 0;
|
||||
@ -808,6 +806,8 @@ static bool xdk_d3d_frame(void *data, const void *frame,
|
||||
D3DSurface* pRenderTarget0;
|
||||
#endif
|
||||
|
||||
RD3DDevice_Clear(d3d->d3d_render_device, 0, NULL, D3DCLEAR_TARGET, 0xff000000, 1.0f, 0);
|
||||
|
||||
if (d3d->last_width != width || d3d->last_height != height)
|
||||
{
|
||||
D3DLOCKED_RECT d3dlr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user