Skip to content

Commit

Permalink
materialsystem: fix color correction on non-windows systems( fixes #137
Browse files Browse the repository at this point in the history
… , #295 related )
  • Loading branch information
nillerusr committed Oct 6, 2023
1 parent 6447101 commit e7addfc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion materialsystem/CColorCorrection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ void ColorCorrectionLookup_t::AllocTexture()
sprintf( name, "ColorCorrection - %p", m_Handle );

m_pColorCorrectionTexture = ITextureInternal::CreateProceduralTexture( name, TEXTURE_GROUP_OTHER,
COLOR_CORRECTION_TEXTURE_SIZE, COLOR_CORRECTION_TEXTURE_SIZE, COLOR_CORRECTION_TEXTURE_SIZE, IMAGE_FORMAT_BGRX8888,
COLOR_CORRECTION_TEXTURE_SIZE, COLOR_CORRECTION_TEXTURE_SIZE, COLOR_CORRECTION_TEXTURE_SIZE,
#ifdef DX_TO_GL_ABSTRACTION
IMAGE_FORMAT_RGBA8888,
#else
IMAGE_FORMAT_BGRX8888,
#endif
TEXTUREFLAGS_NOMIP | TEXTUREFLAGS_NOLOD | TEXTUREFLAGS_SINGLECOPY | TEXTUREFLAGS_CLAMPS |
TEXTUREFLAGS_CLAMPT | TEXTUREFLAGS_CLAMPU | TEXTUREFLAGS_NODEBUGOVERRIDE );

Expand Down

0 comments on commit e7addfc

Please sign in to comment.