diff options
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/util/pixel.c')
| -rw-r--r-- | src/VBox/GuestHost/OpenGL/util/pixel.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/util/pixel.c b/src/VBox/GuestHost/OpenGL/util/pixel.c index c153dee2..5bea3e1f 100644 --- a/src/VBox/GuestHost/OpenGL/util/pixel.c +++ b/src/VBox/GuestHost/OpenGL/util/pixel.c @@ -11,6 +11,8 @@ #include <stdio.h> #include <math.h> +#include <iprt/string.h> + #if defined(WINDOWS) # include <float.h> # define isnan(x) _isnan(x) @@ -1691,7 +1693,9 @@ void crPixelCopy3D( GLsizei width, GLsizei height, GLsizei depth, /*@todo this should be implemented properly*/ +#ifndef DEBUG_misha crWarning( "crPixelCopy3D: simply crMemcpy'ing from srcPtr to dstPtr" ); +#endif if (dstFormat != srcFormat) crWarning( "crPixelCopy3D: formats don't match!" ); if (dstType != srcType) @@ -1841,3 +1845,19 @@ void crDumpNamedTGA(const char* fname, GLint w, GLint h, GLvoid *data) fclose(out); } + +void crDumpNamedTGAV(GLint w, GLint h, GLvoid *data, const char* fname, va_list va) +{ + char szName[4096]; + RTStrPrintfV(szName, sizeof(szName), fname, va); + crDumpNamedTGA(szName, w, h, data); +} + +void crDumpNamedTGAF(GLint w, GLint h, GLvoid *data, const char* fname, ...) +{ + va_list va; + int rc; + va_start(va, fname); + crDumpNamedTGAV(w, h, data, fname, va); + va_end(va); +} |
