fix gl errors due to leftover color attributes, removed deprecated GL_TEXTURE_2D enabling for gl ES2