GL4: Track the internal format of render targets and match them based on that.

This commit is contained in:
Dr. Chat
2016-05-01 11:18:46 -05:00
parent ea7bad1035
commit 720f8b0dc2
2 changed files with 32 additions and 28 deletions

View File

@@ -74,6 +74,7 @@ class GL4CommandProcessor : public CommandProcessor {
uint32_t width;
uint32_t height;
ColorRenderTargetFormat format;
GLenum internal_format;
GLuint texture;
};
struct CachedDepthRenderTarget {
@@ -81,6 +82,7 @@ class GL4CommandProcessor : public CommandProcessor {
uint32_t width;
uint32_t height;
DepthRenderTargetFormat format;
GLenum internal_format;
GLuint texture;
};
struct CachedPipeline {