From d955f14ff7bad3973ba50621b89f9997247560f9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 12 Apr 2013 22:17:06 +0200 Subject: [PATCH] (XDK1) Build fix --- xdk/xdk_d3d.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xdk/xdk_d3d.cpp b/xdk/xdk_d3d.cpp index 62ec82e955..1fb2d2b230 100644 --- a/xdk/xdk_d3d.cpp +++ b/xdk/xdk_d3d.cpp @@ -173,9 +173,11 @@ static void xdk_d3d_free(void *data) d3d->font_ctx->deinit(d3d); +#ifdef HAVE_HLSL if (d3d->shader) d3d->shader->deinit(); d3d->shader = NULL; +#endif d3d->ctx_driver->destroy(); @@ -256,8 +258,10 @@ static void xdk_d3d_set_viewport(bool force_full) vp.MaxZ = m_zFar; d3dr->SetViewport(&vp); +#ifdef HAVE_HLSL if (d3d->shader) d3d->shader->set_mvp(NULL); +#endif #ifdef _XBOX1 font_x = vp.X;