OpenGLDevice: Lazily compile shaders

This commit is contained in:
Stenzek
2023-08-30 22:20:39 +10:00
parent 5421900bb2
commit a11c9faba9
3 changed files with 85 additions and 33 deletions

View File

@ -373,8 +373,8 @@ public:
DepthState depth;
BlendState blend;
const GPUShader* vertex_shader;
const GPUShader* fragment_shader;
GPUShader* vertex_shader;
GPUShader* fragment_shader;
GPUTexture::Format color_format;
GPUTexture::Format depth_format;