Skip to content

ge::gl::Renderbuffer confusing error messages #2

Description

@RohacekD

When I try to construct RenderBuffers I got confusing errors from function

`
auto renderBuff = std::make_sharedge::gl::Renderbuffer(GL_DEPTH_COMPONENT16, width(), height(),0);

auto renderBuff1 = std::make_shared<ge::gl::Renderbuffer>(GL_RGBA, width(), height());

auto renderBuff2 = std::make_shared<ge::gl::Renderbuffer>(GL_RGBA8, width(), height());

auto renderBuff3 = std::make_shared<ge::gl::Renderbuffer>(ge::gl::Renderbuffer::DEPTH_COMPONENT16, width(), height());

auto renderBuff4 = std::make_shared<ge::gl::Renderbuffer>(ge::gl::Renderbuffer::DEPTH_COMPONENT24, width(), height());

auto renderBuff5 = std::make_shared<ge::gl::Renderbuffer>(ge::gl::Renderbuffer::DEPTH_COMPONENT32, width(), height());`

From all of them I've got GL_INVALID_ENUM. So this should mean that I using not color, depth or stencil renderable formats. But according to this:
image
image
I am using correct formats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions