mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
rhi: Remove depth textures
This commit is contained in:
parent
449d330694
commit
28f5afac40
2 changed files with 1 additions and 8 deletions
|
|
@ -122,8 +122,6 @@ constexpr GLenum map_internal_texture_format(rhi::TextureFormat format)
|
|||
return GL_R8;
|
||||
case rhi::TextureFormat::kLuminanceAlpha:
|
||||
return GL_RG8;
|
||||
case rhi::TextureFormat::kDepth:
|
||||
return GL_DEPTH_COMPONENT24;
|
||||
default:
|
||||
return GL_ZERO;
|
||||
}
|
||||
|
|
@ -519,10 +517,6 @@ rhi::Handle<rhi::Texture> GlCoreRhi::create_texture(const rhi::TextureDesc& desc
|
|||
GLenum internal_format = map_internal_texture_format(desc.format);
|
||||
SRB2_ASSERT(internal_format != GL_ZERO);
|
||||
GLenum format = GL_RGBA;
|
||||
if (desc.format == TextureFormat::kDepth)
|
||||
{
|
||||
format = GL_DEPTH_COMPONENT;
|
||||
}
|
||||
|
||||
GLuint name = 0;
|
||||
gl_->GenTextures(1, &name);
|
||||
|
|
|
|||
|
|
@ -90,8 +90,7 @@ enum class TextureFormat
|
|||
kLuminance,
|
||||
kLuminanceAlpha,
|
||||
kRGB,
|
||||
kRGBA,
|
||||
kDepth
|
||||
kRGBA
|
||||
};
|
||||
|
||||
enum class CompareFunc
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue