Handle GL_DOUBLE like GL_FLOAT everywhere
This commit is contained in:
parent
cb692f59b4
commit
6cfb4e437c
|
@ -549,6 +549,7 @@ static inline void _readPositionData(const GLuint first, const GLuint count, Ver
|
||||||
|
|
||||||
if(VERTEX_POINTER.size == 3) {
|
if(VERTEX_POINTER.size == 3) {
|
||||||
switch(VERTEX_POINTER.type) {
|
switch(VERTEX_POINTER.type) {
|
||||||
|
case GL_DOUBLE:
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
_readVertexData3f3f(vptr, count, vstride, output[0].xyz);
|
_readVertexData3f3f(vptr, count, vstride, output[0].xyz);
|
||||||
break;
|
break;
|
||||||
|
@ -569,6 +570,7 @@ static inline void _readPositionData(const GLuint first, const GLuint count, Ver
|
||||||
}
|
}
|
||||||
} else if(VERTEX_POINTER.size == 2) {
|
} else if(VERTEX_POINTER.size == 2) {
|
||||||
switch(VERTEX_POINTER.type) {
|
switch(VERTEX_POINTER.type) {
|
||||||
|
case GL_DOUBLE:
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
_readVertexData2f3f(vptr, count, vstride, output[0].xyz);
|
_readVertexData2f3f(vptr, count, vstride, output[0].xyz);
|
||||||
break;
|
break;
|
||||||
|
@ -603,6 +605,7 @@ static inline void _readUVData(const GLuint first, const GLuint count, Vertex* o
|
||||||
|
|
||||||
if(UV_POINTER.size == 2) {
|
if(UV_POINTER.size == 2) {
|
||||||
switch(UV_POINTER.type) {
|
switch(UV_POINTER.type) {
|
||||||
|
case GL_DOUBLE:
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
_readVertexData2f2f(uvptr, count, uvstride, output[0].uv);
|
_readVertexData2f2f(uvptr, count, uvstride, output[0].uv);
|
||||||
break;
|
break;
|
||||||
|
@ -637,6 +640,7 @@ static inline void _readSTData(const GLuint first, const GLuint count, VertexExt
|
||||||
|
|
||||||
if(ST_POINTER.size == 2) {
|
if(ST_POINTER.size == 2) {
|
||||||
switch(ST_POINTER.type) {
|
switch(ST_POINTER.type) {
|
||||||
|
case GL_DOUBLE:
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
_readVertexData2f2fVE(stptr, count, ststride, extra->st);
|
_readVertexData2f2fVE(stptr, count, ststride, extra->st);
|
||||||
break;
|
break;
|
||||||
|
@ -671,6 +675,7 @@ static inline void _readNormalData(const GLuint first, const GLuint count, Verte
|
||||||
|
|
||||||
if(NORMAL_POINTER.size == 3) {
|
if(NORMAL_POINTER.size == 3) {
|
||||||
switch(NORMAL_POINTER.type) {
|
switch(NORMAL_POINTER.type) {
|
||||||
|
case GL_DOUBLE:
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
_readVertexData3f3fVE(nptr, count, nstride, extra->nxyz);
|
_readVertexData3f3fVE(nptr, count, nstride, extra->nxyz);
|
||||||
break;
|
break;
|
||||||
|
@ -706,6 +711,7 @@ static inline void _readDiffuseData(const GLuint first, const GLuint count, Vert
|
||||||
|
|
||||||
if(DIFFUSE_POINTER.size == 3) {
|
if(DIFFUSE_POINTER.size == 3) {
|
||||||
switch(DIFFUSE_POINTER.type) {
|
switch(DIFFUSE_POINTER.type) {
|
||||||
|
case GL_DOUBLE:
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
_readVertexData3fARGB(cptr, count, cstride, output[0].bgra);
|
_readVertexData3fARGB(cptr, count, cstride, output[0].bgra);
|
||||||
break;
|
break;
|
||||||
|
@ -726,6 +732,7 @@ static inline void _readDiffuseData(const GLuint first, const GLuint count, Vert
|
||||||
}
|
}
|
||||||
} else if(DIFFUSE_POINTER.size == 4) {
|
} else if(DIFFUSE_POINTER.size == 4) {
|
||||||
switch(DIFFUSE_POINTER.type) {
|
switch(DIFFUSE_POINTER.type) {
|
||||||
|
case GL_DOUBLE:
|
||||||
case GL_FLOAT:
|
case GL_FLOAT:
|
||||||
_readVertexData4fARGB(cptr, count, cstride, output[0].bgra);
|
_readVertexData4fARGB(cptr, count, cstride, output[0].bgra);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user