-#include "ext_framebuffer_multisample.h"
-#include "ext_framebuffer_object.h"
+#include <msp/gl/extensions/ext_framebuffer_multisample.h>
+#include <msp/gl/extensions/ext_framebuffer_object.h>
#include "renderbuffer.h"
namespace Msp {
void Renderbuffer::storage(PixelFormat fmt, unsigned wd, unsigned ht)
{
+ require_pixelformat(fmt);
Bind _bind(this, true);
width = wd;
height = ht;
void Renderbuffer::storage_multisample(unsigned samples, PixelFormat fmt, unsigned wd, unsigned ht)
{
static Require _req(EXT_framebuffer_multisample);
+ require_pixelformat(fmt);
Bind _bind(this, true);
width = wd;