made some gfx debug code win32 specific
This commit is contained in:
@@ -333,9 +333,11 @@ int main(int argc, char** argv)
|
|||||||
GEN_init_messaging_system();
|
GEN_init_messaging_system();
|
||||||
|
|
||||||
// Parse command line options
|
// Parse command line options
|
||||||
|
#ifdef WIN32
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
printf("argv[0] = '%s'\n", argv[0]);
|
printf("argv[0] = '%s'\n", argv[0]);
|
||||||
#endif
|
#endif
|
||||||
|
#endif //WIN32
|
||||||
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
@@ -367,9 +369,11 @@ int main(int argc, char** argv)
|
|||||||
;)
|
;)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
#ifdef WIN32
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
printf("argv[%d] = '%s' , %i\n", i, argv[i],argc);
|
printf("argv[%d] = '%s' , %i\n", i, argv[i],argc);
|
||||||
#endif
|
#endif
|
||||||
|
#endif //WIN32
|
||||||
if (argv[i][0] == '-')
|
if (argv[i][0] == '-')
|
||||||
{
|
{
|
||||||
switch (argv[i][1])
|
switch (argv[i][1])
|
||||||
@@ -392,9 +396,11 @@ int main(int argc, char** argv)
|
|||||||
SYS_WriteCommandLineInt(syshandle, paramname, atoi(argv[i]));
|
SYS_WriteCommandLineInt(syshandle, paramname, atoi(argv[i]));
|
||||||
SYS_WriteCommandLineFloat(syshandle, paramname, atof(argv[i]));
|
SYS_WriteCommandLineFloat(syshandle, paramname, atof(argv[i]));
|
||||||
SYS_WriteCommandLineString(syshandle, paramname, argv[i]);
|
SYS_WriteCommandLineString(syshandle, paramname, argv[i]);
|
||||||
|
#ifdef WIN32
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
printf("%s = '%s'\n", paramname, argv[i]);
|
printf("%s = '%s'\n", paramname, argv[i]);
|
||||||
#endif
|
#endif
|
||||||
|
#endif //WIN32
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -214,12 +214,14 @@ BL_Uniform *BL_Shader::FindUniform(const int location)
|
|||||||
void BL_Shader::SetUniformfv(int location, int type, float *param,int size, bool transpose)
|
void BL_Shader::SetUniformfv(int location, int type, float *param,int size, bool transpose)
|
||||||
{
|
{
|
||||||
#ifdef SORT_UNIFORMS
|
#ifdef SORT_UNIFORMS
|
||||||
|
#ifdef WIN32
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
MT_assert(type > BL_Uniform::UNI_NONE && type < BL_Uniform::UNI_MAX);
|
MT_assert(type > BL_Uniform::UNI_NONE && type < BL_Uniform::UNI_MAX);
|
||||||
MT_assert(location);
|
MT_assert(location);
|
||||||
MT_assert(param);
|
MT_assert(param);
|
||||||
//MT_assert(size > 0 && size <= BL_Uniform::UNIFORM_MAX_LEN);
|
//MT_assert(size > 0 && size <= UNIFORM_MAX_LEN);
|
||||||
#endif
|
#endif
|
||||||
|
#endif //WIN32
|
||||||
|
|
||||||
BL_Uniform *uni= FindUniform(location);
|
BL_Uniform *uni= FindUniform(location);
|
||||||
if(uni) {
|
if(uni) {
|
||||||
@@ -240,12 +242,15 @@ void BL_Shader::SetUniformfv(int location, int type, float *param,int size, bool
|
|||||||
void BL_Shader::SetUniformiv(int location, int type, int *param,int size, bool transpose)
|
void BL_Shader::SetUniformiv(int location, int type, int *param,int size, bool transpose)
|
||||||
{
|
{
|
||||||
#ifdef SORT_UNIFORMS
|
#ifdef SORT_UNIFORMS
|
||||||
|
#ifdef WIN32
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
//MT_assert(type > UNI_NONE && type < UNI_MAX);
|
//MT_assert(type > BL_Uniform::UNI_NONE && type < BL_Uniform::UNI_MAX);
|
||||||
MT_assert(location);
|
MT_assert(location);
|
||||||
MT_assert(param);
|
MT_assert(param);
|
||||||
//MT_assert(size > 0 && size <= UNIFORM_MAX_LEN);
|
//MT_assert(size > 0 && size <= UNIFORM_MAX_LEN);
|
||||||
#endif
|
#endif
|
||||||
|
#endif //WIN32
|
||||||
|
|
||||||
|
|
||||||
BL_Uniform *uni= FindUniform(location);
|
BL_Uniform *uni= FindUniform(location);
|
||||||
if(uni) {
|
if(uni) {
|
||||||
|
@@ -18,7 +18,9 @@
|
|||||||
#include "MT_assert.h"
|
#include "MT_assert.h"
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
#ifdef WIN32
|
||||||
#define spit(x) std::cout << x << std::endl;
|
#define spit(x) std::cout << x << std::endl;
|
||||||
|
#endif //WIN32
|
||||||
#else
|
#else
|
||||||
#define spit(x)
|
#define spit(x)
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user