Previous 199869 Revisions Next

r26106 Monday 11th November, 2013 at 18:53:55 UTC by hap
batch vectors at the right time in queue
[src/osd/windows]drawd3d.c

trunk/src/osd/windows/drawd3d.c
r26105r26106
777777   }
778778
779779   m_line_count = 0;
780   
780781   // loop over primitives
781782   for (render_primitive *prim = m_window->primlist->first(); prim != NULL; prim = prim->next())
782783      if (prim->type == render_primitive::LINE && PRIMFLAG_GET_VECTOR(prim->flags))
r26105r26106
793794         case render_primitive::LINE:
794795            if (PRIMFLAG_GET_VECTOR(prim->flags))
795796            {
796               continue;
797               if (m_line_count > 0)
798                  batch_vectors();
799               else
800                  continue;
797801            }
798802            else
799803            {
r26105r26106
809813            throw emu_fatalerror("Unexpected render_primitive type");
810814      }
811815   }
812
813   batch_vectors();
814816}
815817
816818void renderer::end_frame()
r26105r26106
14831485   {
14841486      start_index %= m_line_count;
14851487   }
1488   
1489   m_line_count = 0;
14861490}
14871491
14881492void renderer::batch_vector(const render_primitive *prim, float line_time)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team