mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(gx): file pointer should be initialized to nullptr because its value is used as a condition
This commit is contained in:
parent
18d7f60df0
commit
e20f185f75
1 changed files with 1 additions and 1 deletions
|
|
@ -463,7 +463,7 @@ void CGxDevice::IShaderLoad(CGxShader* shaders[], EGxShTarget target, const char
|
||||||
}
|
}
|
||||||
|
|
||||||
char path[260];
|
char path[260];
|
||||||
SFile* file;
|
SFile* file = nullptr;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
sprintf(path, "%s\\%s\\%s.bls", a4, g_gxShaderProfileNames[target][profile], a5);
|
sprintf(path, "%s\\%s\\%s.bls", a4, g_gxShaderProfileNames[target][profile], a5);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue