OpenGLRenderer: Implement texture blit/copy if glCopyImageSubData is not supported

This commit is contained in:
Jérôme Leclercq
2021-09-21 17:39:24 +02:00
parent 4933a389a2
commit 7ab4d91900
4 changed files with 124 additions and 26 deletions

View File

@@ -7,10 +7,12 @@
namespace Nz::GL
{
inline Context::Context(const OpenGLDevice* device) :
m_vaoCache(*this),
m_device(device)
inline bool Context::DidLastCallSucceed() const
{
if (!m_didCollectErrors)
ProcessErrorStack();
return !m_hadAnyError;
}
inline const OpenGLDevice* Context::GetDevice() const