mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
dedicated server nulltexturemanager work
also supress warning for imageassets not loading a texture in nulldevice, and early out of _determineFeatures shadergen methods under the same conditions
This commit is contained in:
parent
02aee76fc9
commit
04f4a5fcf4
4 changed files with 17 additions and 3 deletions
|
|
@ -48,6 +48,8 @@
|
|||
|
||||
#include <string>
|
||||
#include "assetMacroHelpers.h"
|
||||
|
||||
#include "gfx/gfxDevice.h"
|
||||
//-----------------------------------------------------------------------------
|
||||
class ImageAsset : public AssetBase
|
||||
{
|
||||
|
|
@ -250,7 +252,8 @@ public: \
|
|||
}\
|
||||
else if (!m##name)\
|
||||
{\
|
||||
Con::errorf("%s(%s)::_set%s() - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
||||
if (GFX->getAdapterType() != NullDevice)\
|
||||
Con::errorf("%s(%s)::_set%s() - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), _in);\
|
||||
return false;\
|
||||
}\
|
||||
return true;\
|
||||
|
|
@ -392,7 +395,8 @@ public: \
|
|||
}\
|
||||
else if (!m##name[index])\
|
||||
{\
|
||||
Con::errorf("%s(%s)::_set%s(%i) - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), index, _in);\
|
||||
if (GFX->getAdapterType() != NullDevice)\
|
||||
Con::errorf("%s(%s)::_set%s(%i) - Couldn't load image \"%s\"", macroText(className), getName(), macroText(name), index, _in);\
|
||||
return false; \
|
||||
}\
|
||||
return true;\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue