IOS Renderer: remove clear texture units (does nothing anyway)
This commit is contained in:
parent
26109fcbac
commit
22957c3d28
@ -759,14 +759,6 @@ public class IGLESShaderRenderer implements Renderer {
|
|||||||
Image[] textures = context.boundTextures;
|
Image[] textures = context.boundTextures;
|
||||||
|
|
||||||
int type = convertTextureType(tex.getType());
|
int type = convertTextureType(tex.getType());
|
||||||
if (!context.textureIndexList.moveToNew(unit)) {
|
|
||||||
// if (context.boundTextureUnit != unit){
|
|
||||||
// glActiveTexture(GL_TEXTURE0 + unit);
|
|
||||||
// context.boundTextureUnit = unit;
|
|
||||||
// }
|
|
||||||
// glEnable(type);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (textures[unit] != image) {
|
if (textures[unit] != image) {
|
||||||
if (context.boundTextureUnit != unit) {
|
if (context.boundTextureUnit != unit) {
|
||||||
JmeIosGLES.glActiveTexture(JmeIosGLES.GL_TEXTURE0 + unit);
|
JmeIosGLES.glActiveTexture(JmeIosGLES.GL_TEXTURE0 + unit);
|
||||||
@ -1768,7 +1760,6 @@ public class IGLESShaderRenderer implements Renderer {
|
|||||||
JmeIosGLES.checkGLError();
|
JmeIosGLES.checkGLError();
|
||||||
}
|
}
|
||||||
clearVertexAttribs();
|
clearVertexAttribs();
|
||||||
clearTextureUnits();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void renderMeshDefault(Mesh mesh, int lod, int count) {
|
private void renderMeshDefault(Mesh mesh, int lod, int count) {
|
||||||
@ -1807,7 +1798,6 @@ public class IGLESShaderRenderer implements Renderer {
|
|||||||
JmeIosGLES.checkGLError();
|
JmeIosGLES.checkGLError();
|
||||||
}
|
}
|
||||||
clearVertexAttribs();
|
clearVertexAttribs();
|
||||||
clearTextureUnits();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2085,23 +2075,6 @@ public class IGLESShaderRenderer implements Renderer {
|
|||||||
context.attribIndexList.copyNewToOld();
|
context.attribIndexList.copyNewToOld();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void clearTextureUnits() {
|
|
||||||
IDList textureList = context.textureIndexList;
|
|
||||||
Image[] textures = context.boundTextures;
|
|
||||||
for (int i = 0; i < textureList.oldLen; i++) {
|
|
||||||
int idx = textureList.oldList[i];
|
|
||||||
// if (context.boundTextureUnit != idx){
|
|
||||||
// glActiveTexture(GL_TEXTURE0 + idx);
|
|
||||||
// context.boundTextureUnit = idx;
|
|
||||||
// }
|
|
||||||
// glDisable(convertTextureType(textures[idx].getType()));
|
|
||||||
textures[idx] = null;
|
|
||||||
}
|
|
||||||
context.textureIndexList.copyNewToOld();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void updateFrameBuffer(FrameBuffer fb) {
|
public void updateFrameBuffer(FrameBuffer fb) {
|
||||||
int id = fb.getId();
|
int id = fb.getId();
|
||||||
if (id == -1) {
|
if (id == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user