view loader/debug.h @ 34810:e48338dbd0cb

Align glMapBuffer result. Mesa for some silly reason returns a pointer that is only 8 byte aligned. Fixes -dr and force-pbo crashes (on e.g. x86) and bad output (on e.g. PPC).
author reimar
date Mon, 14 May 2012 19:31:59 +0000
parents a8ea87c71d18
children
line wrap: on
line source

#ifndef MPLAYER_DEBUG_H
#define MPLAYER_DEBUG_H

#ifdef DEBUG
#define TRACE printf
#define dbg_printf printf
#else
#define TRACE(...)
#define dbg_printf(...)
#endif

#endif /* MPLAYER_DEBUG_H */