Adds proper IBuffer usage instead of dynamic flag.

Comments By: phosit
Differential Revision: https://code.wildfiregames.com/D5281
This was SVN commit r28107.
This commit is contained in:
vladislavbelov
2024-06-10 19:31:41 +00:00
parent 06545f5de1
commit b9fd6f18f0
32 changed files with 203 additions and 146 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2023 Wildfire Games.
/* Copyright (C) 2024 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -40,7 +40,8 @@
#include <algorithm>
SkyManager::SkyManager()
: m_VertexArray(Renderer::Backend::IBuffer::Type::VERTEX, false)
: m_VertexArray(Renderer::Backend::IBuffer::Type::VERTEX,
Renderer::Backend::IBuffer::Usage::TRANSFER_DST)
{
CFG_GET_VAL("showsky", m_SkyVisible);
}