Fix code style issue and remove setXfbBufferStride new paramte
1. Keep the curly braces style. 2. revert a Improper change
This commit is contained in:
parent
b69e8f3aca
commit
35dabea786
@ -839,8 +839,7 @@ TIntermTyped* TIntermediate::createConversion(TBasicType convertTo, TIntermTyped
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!buildConvertOp(convertTo, node->getBasicType(), newOp))
|
||||
{
|
||||
if (!buildConvertOp(convertTo, node->getBasicType(), newOp)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -693,9 +693,9 @@ public:
|
||||
bool getPixelCenterInteger() const { return pixelCenterInteger; }
|
||||
void addBlendEquation(TBlendEquationShift b) { blendEquations |= (1 << b); }
|
||||
unsigned int getBlendEquations() const { return blendEquations; }
|
||||
bool setXfbBufferStride(int buffer, unsigned stride, bool force = false)
|
||||
bool setXfbBufferStride(int buffer, unsigned stride)
|
||||
{
|
||||
if (xfbBuffers[buffer].stride != TQualifier::layoutXfbStrideEnd && force == false)
|
||||
if (xfbBuffers[buffer].stride != TQualifier::layoutXfbStrideEnd)
|
||||
return xfbBuffers[buffer].stride == stride;
|
||||
xfbBuffers[buffer].stride = stride;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user