This commit is contained in:
OV2 2013-03-28 15:33:15 +01:00
parent 2b51d48b2b
commit f250cc14ab

View File

@ -577,7 +577,8 @@ bool D3DVideo::frame(const void *frame,
}
#ifdef HAVE_OVERLAY
if(overlay.overlay_enabled) {
if(overlay.overlay_enabled)
{
overlay_render();
}
#endif
@ -1260,7 +1261,8 @@ void D3DVideo::overlay_render()
float u, v;
} vert[4];
if(!overlay.vert_buf) {
if(!overlay.vert_buf)
{
dev->CreateVertexBuffer(
sizeof(vert),
dev->GetSoftwareVertexProcessing() ? D3DUSAGE_SOFTWAREPROCESSING : 0,