Skip to content

Commit

Permalink
Fix texture distortion bug (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
natario1 authored Sep 10, 2019
1 parent b9283ff commit 4d56eda
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
### v0.3.0
### v0.3.1

- Fixes a bug in texture program ([#9][9])

https://github.com/natario1/Egloo/compare/v0.3.0...v0.3.1

## v0.3.0

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

Expand Down Expand Up @@ -31,3 +37,4 @@ https://github.com/natario1/Egloo/compare/v0.2.1...v0.2.2
[5]: https://github.com/natario1/Egloo/pull/5
[7]: https://github.com/natario1/Egloo/pull/7
[8]: https://github.com/natario1/Egloo/pull/8
[9]: https://github.com/natario1/Egloo/pull/9
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ with respect to a typical object-oriented context. Egloo tries to take some of t
by creating a **thin**, flexible layer of abstraction around EGL and GLES calls.

```groovy
implementation 'com.otaliastudios.opengl:egloo:0.3.0'
implementation 'com.otaliastudios.opengl:egloo:0.3.1'
```

&#10240; <!-- Hack to add whitespace -->
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

ext {
libVersion = '0.3.0'
libVersion = '0.3.1'
libGroup = 'com.otaliastudios.opengl'
libName = 'Egloo'
libDescription = 'Simple and lightweight OpenGL ES drawing and EGL management for Android, with object-oriented components based on Google\'s Grafika.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ abstract class Gl2dDrawable: GlDrawable() {
final override val coordsPerVertex = 2

fun getBounds(rect: RectF) {
var top = Float.MIN_VALUE
var top = -Float.MAX_VALUE // not MIN_VALUE!
var bottom = Float.MAX_VALUE
var left = Float.MAX_VALUE
var right = Float.MIN_VALUE
var right = -Float.MAX_VALUE
var count = 0
while (vertexArray.hasRemaining()) {
val value = vertexArray.get()
Expand Down

0 comments on commit 4d56eda

Please sign in to comment.