diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-03-26 19:21:20 +0000 |
|---|---|---|
| committer | <> | 2014-05-08 15:03:54 +0000 |
| commit | fb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch) | |
| tree | c2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/VBox/GuestHost/OpenGL/util/pixel.c | |
| parent | 58ed4748338f9466599adfc8a9171280ed99e23f (diff) | |
| download | VirtualBox-master.tar.gz | |
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
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); +} |
