Fixed a few small things.

This commit is contained in:
2023-06-20 09:29:16 -07:00
parent 0b26b5a06a
commit 0b3bae6e6c
8 changed files with 89 additions and 11 deletions

View File

@ -46,6 +46,14 @@ void Texture::setSize(
glDeleteTextures(1, &this->id);
this->id = -1;
}
#if DAWN_DEBUG_BUILD
int32_t maxSize;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxSize);
assertTrue(width > 0 && width <= maxSize);
assertTrue(height > 0 && height <= maxSize);
#endif
this->width = width;
this->height = height;

View File

@ -38,8 +38,7 @@ std::vector<struct ShaderPassItem> SimpleBillboardedMaterial::getRenderPasses(IR
onlyPass.parameterBuffers[shader->bufferRenderPipeline] = &context.renderPipeline->shaderBuffer;
onlyPass.renderFlags = (
RENDER_MANAGER_RENDER_FLAG_BLEND |
RENDER_MANAGER_RENDER_FLAG_DEPTH_TEST
RENDER_MANAGER_RENDER_FLAG_BLEND
);
if(this->texture != nullptr) {