Skip to content

Commit 4d56eda

Browse files
authored
Fix texture distortion bug (#9)
1 parent b9283ff commit 4d56eda

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
### v0.3.0
1+
### v0.3.1
2+
3+
- Fixes a bug in texture program ([#9][9])
4+
5+
https://github.com/natario1/Egloo/compare/v0.3.0...v0.3.1
6+
7+
## v0.3.0
28

39
- Support for non-rect shapes in textures ([#8][8])
410

@@ -31,3 +37,4 @@ https://github.com/natario1/Egloo/compare/v0.2.1...v0.2.2
3137
[5]: https://github.com/natario1/Egloo/pull/5
3238
[7]: https://github.com/natario1/Egloo/pull/7
3339
[8]: https://github.com/natario1/Egloo/pull/8
40+
[9]: https://github.com/natario1/Egloo/pull/9

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ with respect to a typical object-oriented context. Egloo tries to take some of t
1010
by creating a **thin**, flexible layer of abstraction around EGL and GLES calls.
1111

1212
```groovy
13-
implementation 'com.otaliastudios.opengl:egloo:0.3.0'
13+
implementation 'com.otaliastudios.opengl:egloo:0.3.1'
1414
```
1515

1616
&#10240; <!-- Hack to add whitespace -->

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apply plugin: 'com.github.dcendents.android-maven'
55
apply plugin: 'com.jfrog.bintray'
66

77
ext {
8-
libVersion = '0.3.0'
8+
libVersion = '0.3.1'
99
libGroup = 'com.otaliastudios.opengl'
1010
libName = 'Egloo'
1111
libDescription = 'Simple and lightweight OpenGL ES drawing and EGL management for Android, with object-oriented components based on Google\'s Grafika.'

library/src/main/java/com/otaliastudios/opengl/draw/Gl2dDrawable.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ abstract class Gl2dDrawable: GlDrawable() {
99
final override val coordsPerVertex = 2
1010

1111
fun getBounds(rect: RectF) {
12-
var top = Float.MIN_VALUE
12+
var top = -Float.MAX_VALUE // not MIN_VALUE!
1313
var bottom = Float.MAX_VALUE
1414
var left = Float.MAX_VALUE
15-
var right = Float.MIN_VALUE
15+
var right = -Float.MAX_VALUE
1616
var count = 0
1717
while (vertexArray.hasRemaining()) {
1818
val value = vertexArray.get()

0 commit comments

Comments
 (0)