mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
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:
@ -27,8 +27,6 @@
|
|||||||
extern float posScale;
|
extern float posScale;
|
||||||
extern TVtxAttr *pVtxAttr;
|
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.
|
// Thoughts on the implementation of a vertex loader compiler.
|
||||||
// s_pCurBufferPointer should definitely be in a register.
|
// s_pCurBufferPointer should definitely be in a register.
|
||||||
// Could load the position scale factor in XMM7, for example.
|
// 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 DebugLog(const char* _fmt, ...); // This one goes to the main program
|
||||||
void HandleGLError();
|
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
|
#ifdef _WIN32
|
||||||
#define ERROR_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
#define ERROR_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
||||||
#define INFO_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
#define INFO_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
||||||
#define PRIM_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
#define PRIM_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
||||||
#define DEBUG_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
#define DEBUG_LOG(...) LOG(VIDEO, __VA_ARGS__)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define ERROR_LOG(...) LOG(VIDEO, ##__VA_ARGS__)
|
#define ERROR_LOG(...) LOG(VIDEO, ##__VA_ARGS__)
|
||||||
#define INFO_LOG(...) LOG(VIDEO, ##__VA_ARGS__)
|
#define INFO_LOG(...) LOG(VIDEO, ##__VA_ARGS__)
|
||||||
|
Reference in New Issue
Block a user