File tree 2 files changed +4
-6
lines changed
gdx-video-android/src/com/badlogic/gdx/video
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ allprojects {
29
29
30
30
ext {
31
31
minSdk = 16
32
- targetSdk = 29
33
- compileSdk = 29
34
- buildTools = ' 29 .0.3'
32
+ targetSdk = 30
33
+ compileSdk = 30
34
+ buildTools = ' 30 .0.3'
35
35
36
36
isReleaseBuild = {
37
37
return project. hasProperty(" RELEASE" )
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ public boolean update () {
207
207
shader .bind ();
208
208
209
209
Gdx .gl .glActiveTexture (GL20 .GL_TEXTURE0 );
210
- Gdx .gl .glBindTexture (GLES11Ext .GL_TEXTURE_EXTERNAL_OES , textures [ 0 ] );
210
+ Gdx .gl .glBindTexture (GLES11Ext .GL_TEXTURE_EXTERNAL_OES , getTextureExternal () );
211
211
shader .setUniformi ("u_sampler0" , 0 );
212
212
renderer .begin (transform , GL20 .GL_TRIANGLE_STRIP );
213
213
renderer .texCoord (0 , 0 );
@@ -220,7 +220,6 @@ public boolean update () {
220
220
renderer .vertex (1 , 1 , 0 );
221
221
renderer .end ();
222
222
fbo .end ();
223
- if (frame != null ) frame .dispose ();
224
223
frame = fbo .getColorBufferTexture ();
225
224
}
226
225
return true ;
@@ -293,7 +292,6 @@ public void dispose () {
293
292
GLES20 .glDeleteTextures (1 , textures , 0 );
294
293
295
294
if (fbo != null ) fbo .dispose ();
296
- if (frame != null ) frame .dispose ();
297
295
shader .dispose ();
298
296
renderer .dispose ();
299
297
}
You can’t perform that action at this time.
0 commit comments