File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
jme3-core/src/main/java/com/jme3/renderer/opengl Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2030,12 +2030,14 @@ public void setFrameBuffer(FrameBuffer fb) {
20302030 for (int i = 0 ; i < context .boundFB .getNumColorBuffers (); i ++) {
20312031 RenderBuffer rb = context .boundFB .getColorBuffer (i );
20322032 Texture tex = rb .getTexture ();
2033- if (tex != null
2034- && tex .getMinFilter ().usesMipMapLevels ()) {
2033+ if (tex != null && tex .getMinFilter ().usesMipMapLevels ()) {
20352034 setTexture (0 , rb .getTexture ());
2036-
2037- int textureType = convertTextureType (tex .getType (), tex .getImage ().getMultiSamples (), rb .getFace ());
2038- glfbo .glGenerateMipmapEXT (textureType );
2035+ if (tex .getType ()==Texture .Type .CubeMap ){
2036+ glfbo .glGenerateMipmapEXT (GL .GL_TEXTURE_CUBE_MAP );
2037+ }else {
2038+ int textureType = convertTextureType (tex .getType (), tex .getImage ().getMultiSamples (), rb .getFace ());
2039+ glfbo .glGenerateMipmapEXT (textureType );
2040+ }
20392041 }
20402042 }
20412043 }
You can’t perform that action at this time.
0 commit comments