GLRenderer: inject SRGB define if texture linearization is enabled
This commit is contained in:
parent
8b300f5109
commit
4e7d7fd2f1
@ -1062,6 +1062,10 @@ public class GLRenderer implements Renderer {
|
||||
}
|
||||
}
|
||||
|
||||
if (linearizeSrgbImages) {
|
||||
stringBuf.append("#define SRGB 1\n");
|
||||
}
|
||||
|
||||
stringBuf.append(source.getDefines());
|
||||
stringBuf.append(source.getSource());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user