#include <cmath>
+#include <msp/gl/extensions/ext_texture3d.h>
#include <msp/graphics/image.h>
#include "bindable.h"
#include "error.h"
-#include "ext_texture3d.h"
#include "texture3d.h"
using namespace std;
throw invalid_operation("Texture3D::storage");
if(wd==0 || ht==0 || dp==0)
throw invalid_argument("Texture3D::storage");
+ require_pixelformat(fmt);
width = wd;
height = ht;