Commit Graph

3926 Commits

Author SHA1 Message Date
Hajime Hoshi
8f62a510ab clock: Bug fix: Use float64 not to overflow
Bug: #862
2019-05-09 20:35:54 +09:00
Hajime Hoshi
77b488c42a audio: Bug fix: bufferToInt16 can return smaller result
Fixes #854
2019-04-29 00:35:40 +09:00
Hajime Hoshi
bd2e9a2745 graphics: Add TestImageZeroSizedMipmap 2019-04-26 02:56:40 +09:00
Hajime Hoshi
31c8bd8367 graphics: Bug fix: level must be >= 0
There was a cache that level can be negative. This change fixes
this.
2019-04-26 02:56:33 +09:00
Hajime Hoshi
b7c07a3355 graphicsdriver/metal: Make (*Driver).Flush do nothing 2019-04-20 16:58:54 +09:00
Hajime Hoshi
f99e28cce8 graphicsdriver/metal: Set and reset screenDrawable more correctly 2019-04-20 16:57:57 +09:00
Hajime Hoshi
b64c77f206 graphicsdriver/metal: Use NSAutoreleasePool to release drawable correctly
Fixes #847
2019-04-20 16:57:32 +09:00
Hajime Hoshi
4844bc044e Revert "graphicsdriver/metal: Bug fix: Release drawable correctly"
This reverts commit c44accbfb5.

Reason: This change doesn't make sense
2019-04-20 00:28:37 +09:00
Hajime Hoshi
386c4e0e27 graphicsdriver/metal: Bug fix: Release drawable correctly
Fixes #847
2019-04-19 20:23:41 +09:00
Hajime Hoshi
360931ea2b Update Oto version
Fixes #836
2019-04-09 19:42:23 -04:00
Hajime Hoshi
61af42681d Update go-mp3 version to v0.2.0 2019-04-07 18:40:20 -04:00
Hajime Hoshi
2e6cb35274 audio/mp3: Bug fix: Accept non-io.Closer at Resampling 2019-04-07 06:50:27 +09:00
Hajime Hoshi
1ece2ee8f2 audio/mp3: Bug fix: Close source when needed 2019-04-07 06:50:20 +09:00
Hajime Hoshi
b8b75e8172 audio/mp3: Remove Close calls
Close is removed at 14af46a99b
2019-04-07 06:50:10 +09:00
Hajime Hoshi
6865dee1e6 Use Go 1.12 for the latest GopherJS 2019-04-07 06:18:31 +09:00
Hajime Hoshi
d90a0cff23 graphics: Bug fix: Too small mipmap
Bug: #839
2019-04-07 05:36:24 +09:00
Hajime Hoshi
57590d93d8 Update version to 1.9.0 2019-03-04 23:26:53 +09:00
Hajime Hoshi
6d23df1bff Update Oto version to 0.3.1 2019-03-04 00:07:14 +09:00
Hajime Hoshi
a2f1b002ab Update Oto version for the critical bug fix on macOS 2019-02-28 02:13:52 +09:00
Hajime Hoshi
9dd1e50868 Update version to 1.9.0-rc1 2019-02-26 00:05:17 +09:00
Hajime Hoshi
f56c3bd096 ui: Unexport SetWindowResizable (#320) 2019-02-25 02:19:47 +09:00
Hajime Hoshi
ea7c2f8da3 ui: Bug fix: Wrong assumption that the position was always >= 0 2019-02-24 23:34:36 +09:00
Hajime Hoshi
ba59cdbc5f ui: Bug fix: The window must be shown on the current monitor (#829) 2019-02-24 23:26:07 +09:00
Hajime Hoshi
d4a522d9da glfw: Bug fix: Do not pass Go's int pointer
Go's int can be 64bit or 32bit, while C's int is always 32bit on
Windows in Ebiten usage. For C's int argument, do not pass Go's
int pointer or broken values are set.

Related to #829
2019-02-24 23:10:18 +09:00
Hajime Hoshi
288e0a33ba ui: Bug fix: SetSizeCallback must be effective only when the window is resizable
This is not a perfect solution but at least this fixes the
regression.

Fix #819
2019-02-24 03:25:38 +09:00
Hajime Hoshi
ca6e681672 docs: Update screenshot 2019-02-24 02:10:54 +09:00
Hajime Hoshi
fc43868f21 examples/sprites: Rotate sprites 2019-02-24 02:09:38 +09:00
Hajime Hoshi
3f888f85cc docs: Update 2019-02-24 01:40:51 +09:00
Hajime Hoshi
f7e7598567 examples/particles: Reduce emittion 2019-02-24 01:26:07 +09:00
Hajime Hoshi
0a35efbba9 Add examples/particles
Fixes #826
2019-02-24 01:20:06 +09:00
Hajime Hoshi
17275e6266 docs: Update: Changed the layout a little bit 2019-02-23 03:37:01 +09:00
Hajime Hoshi
a9722d74e3 docs: Update 2019-02-23 02:25:03 +09:00
Hajime Hoshi
5195161253 graphics: Remove SetFinalizer at Image
Package shareable should take care of this.

Finalizers are called at arbitrary timing in a different goroutine
and might cause tough problems. This might be related to #821.
2019-02-22 11:08:34 +09:00
Hajime Hoshi
f19d7a29b8 graphicsdriver/metal: Do not release a nil texture (screen) 2019-02-22 00:37:49 +09:00
Hajime Hoshi
6c47e31f49 graphics: Do nothing at Dispose of a subimage 2019-02-22 00:08:19 +09:00
Hajime Hoshi
9595f7ae26 graphics: Refactoring: Use a value type of bounds instead of a pointer 2019-02-21 23:51:05 +09:00
Hajime Hoshi
5ed6565d1d graphics: Bug fix: SubImage's SubImage's bounds was wrong 2019-02-21 23:44:57 +09:00
Hajime Hoshi
8f133c443e graphics: Change the definition of isSubImage 2019-02-21 23:27:40 +09:00
Hajime Hoshi
75a0d109be graphics: Rename isSubimage -> isSubImage 2019-02-21 23:24:02 +09:00
Hajime Hoshi
8934f8296f graphics: Bug fix: Don't touch pixelsToSet when disposing a subimage
This change also removes finalizer for subimages since this is not
necessary.

Fixes #823
2019-02-21 23:07:11 +09:00
Hajime Hoshi
dbe4f27d5f shareable: Add comments
Oops, 0dcb53d290 did not make sense.
2019-02-21 10:58:40 +09:00
Hajime Hoshi
0dcb53d290 shareable: Bug fix: Node-leak when extending a page
This is very rare and not so serious I think, but is still a bug.
2019-02-21 10:49:23 +09:00
Hajime Hoshi
0bf911905a Revert "graphicsdriver/opengl: Call glFinish before glReadPixels"
This reverts commit 04dc1faa9c.

Reason: True fix for #814 is 82178794c3
2019-02-19 10:55:06 +09:00
Hajime Hoshi
82178794c3 shareable: Bug fix: Unlock after filling
Fixes #820
2019-02-19 10:16:27 +09:00
Hajime Hoshi
ccacf015c2 Revert "restorable: Bug fix: Guard images by mutex"
This reverts commit 7967f68073.

Reason: Wrong fix (syncing should be done at shareable package)
2019-02-19 10:15:23 +09:00
Hajime Hoshi
7967f68073 restorable: Bug fix: Guard images by mutex
The map must be guarded by mutex since this can be accessed by
multiple goroutines, including finalizer goroutine.

Fixes #820
2019-02-19 10:10:46 +09:00
Hajime Hoshi
6906ea1c4f examples/raycasting: Refactoring 2019-02-19 00:03:35 +09:00
Hajime Hoshi
d724e17032 graphicsdriver/metal: Bug fix: Wrong usage of RenderPipelineState for screen 2019-02-17 21:41:47 +09:00
Hajime Hoshi
84b1c282ff graphicsdriver/opengl: Refactoring by reduing unused variables 2019-02-17 20:22:03 +09:00
Hajime Hoshi
548f231f39 graphics: Add comments 2019-02-17 19:44:15 +09:00