mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
D3D: minor vs constant-setting optimization, remove a stupid memcpy that doesn't do anything, don't see much benefit though :/ At least the PIX logs will be cleaner.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4301 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -99,6 +99,7 @@ void Shutdown()
|
||||
|
||||
void CreateDeviceObjects()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void DestroyDeviceObjects()
|
||||
@ -140,12 +141,8 @@ void AddVertices(int _primitive, int _numVertices)
|
||||
|
||||
if (collection != type)
|
||||
{
|
||||
//We are NOT collecting the right type.
|
||||
// We are NOT collecting the right type.
|
||||
Flush();
|
||||
|
||||
// Copy the extra verts that we lost.
|
||||
memcpy(s_pCurBufferPointer, fakeVBuffer, _numVertices * g_nativeVertexFmt->GetVertexStride());
|
||||
|
||||
collection = type;
|
||||
u16 *ptr = 0;
|
||||
if (type != C_POINTS)
|
||||
|
Reference in New Issue
Block a user