@@ -880,23 +880,7 @@ void glRenderbufferStorage(GLenum target, GLenum internalFormat, GLsizei width,
880880
881881 INIT_CHECK_GL_ERROR_FORCE
882882
883- CLEAR_GL_ERROR_NO_INIT
884-
885- LOG_D (" mg.glRenderbufferStorage, target: %s, internalFormat: %s, width: %d, "
886- " height: %d" ,
887- glEnumToString (target), glEnumToString (internalFormat), width, height)
888-
889- GLint realInternalFormat;
890- GLES .glGetTexLevelParameteriv (target, 0 , GL_TEXTURE_INTERNAL_FORMAT , &realInternalFormat);
891- ERR = GLES .glGetError ();
892- if (realInternalFormat != 0 && ERR == GL_NO_ERROR )
893- internalFormat = (GLenum)realInternalFormat;
894- else
895- internalFormat = GL_DEPTH_COMPONENT24 ;
896-
897- CLEAR_GL_ERROR_NO_INIT
898-
899- LOG_D (" es.glRenderbufferStorage, target: %s, internalFormat: %s, width: %d, "
883+ LOG_D (" glRenderbufferStorage, target: %s, internalFormat: %s, width: %d, "
900884 " height: %d" ,
901885 glEnumToString (target), glEnumToString (internalFormat), width, height)
902886
@@ -911,16 +895,6 @@ void glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum int
911895
912896 INIT_CHECK_GL_ERROR_FORCE
913897
914- CLEAR_GL_ERROR_NO_INIT
915-
916- GLint realInternalFormat;
917- GLES .glGetTexLevelParameteriv (target, 0 , GL_TEXTURE_INTERNAL_FORMAT , &realInternalFormat);
918- ERR = GLES .glGetError ();
919- if (realInternalFormat != 0 && ERR == GL_NO_ERROR )
920- internalFormat = (GLenum)realInternalFormat;
921- else
922- internalFormat = GL_DEPTH_COMPONENT24 ;
923-
924898 LOG_D (" glRenderbufferStorageMultisample, target: %d, samples: %d, "
925899 " internalFormat: %d, width: %d, height: %d" ,
926900 target, samples, internalFormat, width, height)
0 commit comments