diff options
author | 2016-02-22 17:30:21 +0100 | |
---|---|---|
committer | 2016-02-22 17:30:35 +0100 | |
commit | 53994092de00f0f705c56ae24ef813c01474cae1 (patch) | |
tree | 44695c9e7d5e362887544195ca43f6428b4a3a7b /src/osd/modules/render/draw13.cpp | |
parent | e4c5cf650b02062e4c28fbf4b93670be94f7cdd3 (diff) |
Fix D3D and BGFX fullscreen toggle issues, nw
Diffstat (limited to 'src/osd/modules/render/draw13.cpp')
-rw-r--r-- | src/osd/modules/render/draw13.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/osd/modules/render/draw13.cpp b/src/osd/modules/render/draw13.cpp index 7874cd16ea1..acf946b715d 100644 --- a/src/osd/modules/render/draw13.cpp +++ b/src/osd/modules/render/draw13.cpp @@ -899,6 +899,32 @@ texture_info *renderer_sdl1::texture_find(const render_primitive &prim, const qu } //============================================================ +// exit +//============================================================ + +void renderer_sdl1::exit() +{ + if (s_blit_info_initialized) + { + for (int i = 0; i <= SDL_TEXFORMAT_LAST; i++) + { + for (copy_info_t *bi = s_blit_info[i]; bi != nullptr; ) + { + if (bi->pixel_count) + osd_printf_verbose("%s -> %s %s blendmode 0x%02x, %d samples: %d KPixel/sec\n", bi->srcname, bi->dstname, + bi->blitter->m_is_rot ? "rot" : "norot", bi->bm_mask, bi->samples, + (int) bi->perf); + copy_info_t *freeme = bi; + bi = bi->next; + global_free(freeme); + } + s_blit_info[i] = nullptr; + } + s_blit_info_initialized = false; + } +} + +//============================================================ // texture_update //============================================================ |