Changed a few GL_TYPE -> GL_TYPE_NM to remove ambiguity
This commit is contained in:
parent
63e67d5131
commit
fb2ad3f323
|
@ -212,7 +212,7 @@ public:
|
|||
int screenH = (int)(vp[3]-vp[1]);
|
||||
|
||||
GL_TYPE_NM<Scalarm>::ScalarType *buffer = new GL_TYPE_NM<Scalarm>::ScalarType[screenW*screenH];
|
||||
|
||||
|
||||
//I'm not sure glReadPixels can accept GL_DOUBLE tag
|
||||
//GLenum err = glGetError();
|
||||
glReadPixels(vp[0],vp[1],vp[2],vp[3],GL_DEPTH_COMPONENT,GL_TYPE_NM<Scalarm>::SCALAR(),buffer);
|
||||
|
@ -254,11 +254,11 @@ public:
|
|||
int screenH = vp[3]-vp[1];
|
||||
|
||||
|
||||
GL_TYPE<Scalarm>::ScalarType *buffer = new GL_TYPE<Scalarm>::ScalarType[screenW*screenH];
|
||||
GL_TYPE_NM<Scalarm>::ScalarType *buffer = new GL_TYPE_NM<Scalarm>::ScalarType[screenW*screenH];
|
||||
|
||||
//I'm not sure glReadPixels can accept GL_DOUBLE tag
|
||||
//GLenum err = glGetError();
|
||||
glReadPixels(vp[0],vp[1],vp[2],vp[3],GL_DEPTH_COMPONENT,GL_TYPE<Scalarm>::SCALAR(),buffer);
|
||||
glReadPixels(vp[0],vp[1],vp[2],vp[3],GL_DEPTH_COMPONENT,GL_TYPE_NM<Scalarm>::SCALAR(),buffer);
|
||||
//err = glGetError();
|
||||
|
||||
std::vector<FacePointer> result;
|
||||
|
|
Loading…
Reference in New Issue