attempt to get rid of another __LOG crash
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2110 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
77215fd27c
commit
ad88b27c76
|
@ -27,8 +27,6 @@
|
|||
extern float posScale;
|
||||
extern TVtxAttr *pVtxAttr;
|
||||
|
||||
#define LOG_VTX() PRIM_LOG("vtx: %f %f %f, ", ((float*)VertexManager::s_pCurBufferPointer)[0], ((float*)VertexManager::s_pCurBufferPointer)[1], ((float*)VertexManager::s_pCurBufferPointer)[2]);
|
||||
|
||||
// Thoughts on the implementation of a vertex loader compiler.
|
||||
// s_pCurBufferPointer should definitely be in a register.
|
||||
// Could load the position scale factor in XMM7, for example.
|
||||
|
|
|
@ -92,11 +92,18 @@ struct TRectangle
|
|||
void DebugLog(const char* _fmt, ...); // This one goes to the main program
|
||||
void HandleGLError();
|
||||
|
||||
#ifdef LOGGING
|
||||
#define LOG_VTX() LOG("vtx: %f %f %f, ", ((float*)VertexManager::s_pCurBufferPointer)[0], ((float*)VertexManager::s_pCurBufferPointer)[1], ((float*)VertexManager::s_pCurBufferPointer)[2]);
|
||||
#else
|
||||
#define LOG_VTX()
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define ERROR_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
||||
#define INFO_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
||||
#define PRIM_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
||||
#define DEBUG_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
||||
|
||||
#else
|
||||
#define ERROR_LOG(...) LOG(VIDEO, ##__VA_ARGS__)
|
||||
#define INFO_LOG(...) LOG(VIDEO, ##__VA_ARGS__)
|
||||
|
|
Loading…
Reference in New Issue