From Brede Johansen, "Changed ">" to ">=" when testing for version 16.1 or later."
This commit is contained in:
parent
0f209a5362
commit
5622e0d202
@ -636,8 +636,8 @@ protected:
|
||||
// Using parent's shader pool -- ignore this record.
|
||||
return;
|
||||
|
||||
int32 index = in.readInt32();
|
||||
int32 type = in.readInt32();
|
||||
int32 index = in.readInt32(-1);
|
||||
int32 type = in.readInt32(-1);
|
||||
std::string name = in.readString(1024);
|
||||
|
||||
if (type == CG)
|
||||
@ -650,13 +650,12 @@ protected:
|
||||
std::string vertexProgramEntry = in.readString(256);
|
||||
std::string fragmentProgramEntry = in.readString(256);
|
||||
}
|
||||
|
||||
if (type == GLSL)
|
||||
else if (type == GLSL)
|
||||
{
|
||||
int32 vertexProgramFileCount(1);
|
||||
int32 fragmentProgramFileCount(1);
|
||||
|
||||
if (document.version() > VERSION_16_1)
|
||||
if (document.version() >= VERSION_16_1)
|
||||
{
|
||||
// In 16.1, possibly multiple filenames for each vertex and fragment program.
|
||||
vertexProgramFileCount = in.readInt32();
|
||||
|
Loading…
Reference in New Issue
Block a user