mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 13:32:59 +01:00
Renamed BGFX_TEXTURE_RT_BUFFER_ONLY to more descriptive BGFX_TEXTURE_RT_WRITE_ONLY.
This commit is contained in:
@@ -3948,10 +3948,10 @@ namespace bgfx { namespace gl
|
||||
m_requestedFormat =
|
||||
m_textureFormat = uint8_t(_format);
|
||||
|
||||
const bool bufferOnly = 0 != (m_flags&BGFX_TEXTURE_RT_BUFFER_ONLY);
|
||||
const bool writeOnly = 0 != (m_flags&BGFX_TEXTURE_RT_WRITE_ONLY);
|
||||
const bool computeWrite = 0 != (m_flags&BGFX_TEXTURE_COMPUTE_WRITE );
|
||||
|
||||
if (!bufferOnly)
|
||||
if (!writeOnly)
|
||||
{
|
||||
GL_CHECK(glGenTextures(1, &m_id) );
|
||||
BX_CHECK(0 != m_id, "Failed to generate texture id.");
|
||||
@@ -4025,7 +4025,7 @@ namespace bgfx { namespace gl
|
||||
msaaQuality = bx::uint32_min(s_renderGL->m_maxMsaa, msaaQuality == 0 ? 0 : 1<<msaaQuality);
|
||||
|
||||
if (0 != msaaQuality
|
||||
|| bufferOnly)
|
||||
|| writeOnly)
|
||||
{
|
||||
GL_CHECK(glGenRenderbuffers(1, &m_rbo) );
|
||||
BX_CHECK(0 != m_rbo, "Failed to generate renderbuffer id.");
|
||||
@@ -4051,7 +4051,7 @@ namespace bgfx { namespace gl
|
||||
|
||||
GL_CHECK(glBindRenderbuffer(GL_RENDERBUFFER, 0) );
|
||||
|
||||
if (bufferOnly)
|
||||
if (writeOnly)
|
||||
{
|
||||
// This is render buffer, there is no sampling, no need
|
||||
// to create texture.
|
||||
|
||||
Reference in New Issue
Block a user