You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Fix Visual Studio throwing C4146 warning.
This commit is contained in:
@@ -3769,8 +3769,8 @@ ShaderLanguage::Node *ShaderLanguage::_reduce_expression(BlockNode *p_block, Sha
|
|||||||
nv.sint = -cn->values[i].sint;
|
nv.sint = -cn->values[i].sint;
|
||||||
} break;
|
} break;
|
||||||
case TYPE_UINT: {
|
case TYPE_UINT: {
|
||||||
// FIXME: This can't work on uint
|
// Intentionally wrap the unsigned int value, because GLSL does.
|
||||||
nv.uint = -cn->values[i].uint;
|
nv.uint = 0 - cn->values[i].uint;
|
||||||
} break;
|
} break;
|
||||||
case TYPE_FLOAT: {
|
case TYPE_FLOAT: {
|
||||||
nv.real = -cn->values[i].real;
|
nv.real = -cn->values[i].real;
|
||||||
|
|||||||
Reference in New Issue
Block a user