diff options
Diffstat (limited to 'src/osd/windows/drawd3d.c')
-rw-r--r-- | src/osd/windows/drawd3d.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/osd/windows/drawd3d.c b/src/osd/windows/drawd3d.c index 8823d90979a..60c0a990c0a 100644 --- a/src/osd/windows/drawd3d.c +++ b/src/osd/windows/drawd3d.c @@ -646,67 +646,6 @@ texture_info *texture_manager::find_texinfo(const render_texinfo *texinfo, UINT3 } } - // Nothing found - /*int checkidx = 0; - for (texture = m_renderer->get_texture_manager()->get_texlist(); texture != NULL; texture = texture->get_next()) - { - printf("Checking texture index %d\n", checkidx); - UINT32 test_screen = (UINT32)texture->get_texinfo().osddata >> 1; - UINT32 test_page = (UINT32)texture->get_texinfo().osddata & 1; - UINT32 prim_screen = (UINT32)texinfo->osddata >> 1; - UINT32 prim_page = (UINT32)texinfo->osddata & 1; - if (test_screen != prim_screen || test_page != prim_page) - { - printf("No screen/page match: %d vs. %d, %d vs. %d\n", test_screen, prim_screen, test_page, prim_page); - continue; - } - - if (texture->get_hash() == hash && - texture->get_texinfo().base == texinfo->base && - texture->get_texinfo().width == texinfo->width && - texture->get_texinfo().height == texinfo->height && - ((texture->get_flags() ^ flags) & (PRIMFLAG_BLENDMODE_MASK | PRIMFLAG_TEXFORMAT_MASK)) == 0) - { - // Reject a texture if it belongs to an out-of-date render target, so as to cause the HLSL system to re-cache - if (m_renderer->get_shaders()->enabled() && texinfo->width != 0 && texinfo->height != 0 && (flags & PRIMFLAG_SCREENTEX_MASK) != 0) - { - if (m_renderer->get_shaders()->find_render_target(texture) != NULL) - { - return texture; - } - } - else - { - return texture; - } - } - - if (texture->get_hash() != hash) - { - printf("No hash match: %d vs. %d\n", texture->get_hash(), hash); - } - if (texture->get_texinfo().base != texinfo->base) - { - printf("No base match\n"); - } - if (texture->get_texinfo().width != texinfo->width) - { - printf("No width match: %d vs. %d\n", texture->get_texinfo().width, texinfo->width); - } - if (texture->get_texinfo().height != texinfo->height) - { - printf("No height match: %d vs. %d\n", texture->get_texinfo().height, texinfo->height); - } - if (((texture->get_flags() ^ flags) & (PRIMFLAG_BLENDMODE_MASK | PRIMFLAG_TEXFORMAT_MASK)) != 0) - { - printf("No flag match: %08x & %08x = %08x\n", texture->get_flags(), flags, ((texture->get_flags() ^ flags) & (PRIMFLAG_BLENDMODE_MASK | PRIMFLAG_TEXFORMAT_MASK))); - } - printf("\n"); - checkidx++; - } - - printf("\n\n\n\n");*/ - // Nothing found, check if we need to unregister something with HLSL if (m_renderer->get_shaders()->enabled()) { @@ -1897,7 +1836,6 @@ vertex *renderer::mesh_alloc(int numverts) // if we're going to overflow, flush if (m_lockedbuf != NULL && m_numverts + numverts >= VERTEX_BUFFER_SIZE) { - printf("request for %d verts\n", numverts); primitive_flush_pending(); if(m_shaders->enabled()) |