Hajime Hoshi
d4beacf27e
Revert "internal/graphicsdriver/directx: unmap constant buffers appropriately"
...
This reverts commit 085e6fe994
.
Reason: compile error
2022-07-15 03:46:11 +09:00
Hajime Hoshi
085e6fe994
internal/graphicsdriver/directx: unmap constant buffers appropriately
...
Updates #2198
Updates #2202
2022-07-14 21:47:24 +09:00
Hajime Hoshi
742503ae68
internal/graphicsdriver/directx: bug fix: need to reset command allocators
...
Closes #2202
2022-07-14 21:30:08 +09:00
Hajime Hoshi
4a17f6159a
internal/graphicsdriver/directx: bug fix: wrong offsets
...
* Wrong offsets were speicified when creating a constant buffer view and
a shader resource view.
* Wrong root descriptor tables were speicified. For one draw command,
one descriptor table for a constant buffer and textures should be used.
Updates #2198
Closes #2201
2022-07-14 12:33:33 +09:00
Hajime Hoshi
ddaef29bc9
cmd/ebitenmobile: bug fix: the first character of a framework name must be an upper case
...
Updates #2192
2022-07-14 12:24:35 +09:00
Hajime Hoshi
41756e512d
cmd/ebitenmobile: bug fix: wrong file name for GLKit.h
...
Updates #2192
2022-07-14 12:24:35 +09:00
Hajime Hoshi
e488486d97
internal/ui: better fix for initialMonitorByOS
...
Updates #2179
2022-07-04 14:43:05 +09:00
Hajime Hoshi
29b41fd07f
internal/graphicsdriver/directx: bug fix: ignore DXGI_STATUS_OCCLUDED
...
When a screen is locked, an Ebitengine application crashed as the
swap chain's Present returned DXGI_STATUS_OCCLUDED.
Let's ignore the error and continue to run the applications. In the
ideal world, an application should stop running during the screen lock,
so let's revisit this later.
This fix also fixes the issue that a Win32API GetCursorPos returned
an error ERROR_ACCESS_DENIED when the screen was locked.
Closes #2179
2022-07-04 13:00:12 +09:00
Hajime Hoshi
fc0a5d42b6
Revert "internal/graphicscommand: bug fix: using an image just after ReplacePixels might fail on Metal"
...
This reverts commit 7d998d8203
.
Reason: This didn't fix the issue.
Updates #2154
2022-07-04 12:05:20 +09:00
Hajime Hoshi
f3a40ed38e
internal/jsutil: bug fix: unnecessary allocations of temporary ArrayBuffers
...
Closes #2156
2022-07-03 21:34:55 +09:00
Hajime Hoshi
7d998d8203
internal/graphicscommand: bug fix: using an image just after ReplacePixels might fail on Metal
...
Inserting a dummy rendering command after ReplacePixels and before
DrawTriangles solved the issue. This is a very dirty hack, but
there seems no other better way.
Closes #2154
2022-07-03 16:00:39 +09:00
Hajime Hoshi
cca32077c4
Revert "internal/graphicsdriver/metal: bug fix: need to commit replace-pixels commands at DrawTriangles"
...
This reverts commit ac802cf0d0
.
Reason: This caused flickerings, and didn't solve #2154
Updates #2154
Closes #2174
2022-07-03 12:18:56 +09:00
Hajime Hoshi
a1db69000e
inpututil: bug fix: out of range at scanning buttons
...
Updates #2169
2022-06-29 15:55:46 +09:00
Hajime Hoshi
ddef7351c1
internal/graphicsdriver/directx: bug fix: clear constant buffers at the end of DrawTriangles
...
Constant buffers should not be reset while a stencil buffer is used.
Closes #2138
2022-06-19 17:19:31 +09:00
Hajime Hoshi
0d0bf0abdb
internal/graphicsdriver/metal: bug fix: need to commit replace-pixels commands at DrawTriangles
...
Closes #2154
2022-06-19 15:39:39 +09:00
Hajime Hoshi
7a6cbcaea6
internal/graphicsdriver/directx: bug fix: wrong state transitions at screen images
...
This change fixes the following issues:
* There should be two resource states for presenting targets, so an image
for the screen must have two resource states, though it had only one
in the current implementation.
* At removeImage, the screen image was removed unexpectedly.
Updates #2081
Closes #2151
2022-06-18 19:06:39 +09:00
Hajime Hoshi
b176867d07
internal/ui: bug fix: MaximizeWindow before Run caused an unexpected error on Windows
...
Closes #2137
2022-06-13 12:29:17 +09:00
Hajime Hoshi
eb4fe093ed
Revert commits for Oto
...
This reverts these commits
* aef06f3b91
.
* 77b67d0fe6
.
Reason: see https://github.com/hajimehoshi/ebiten/issues/2118#issuecomment-1146890541
2022-06-06 07:02:07 +09:00
Hajime Hoshi
c82371dfcb
internal/graphicsdriver/directx: bug fix: disable fullscreen by Alt+Enter
...
By default, DirectX 12 tries to make the window fullscreen by Alt+Enter.
This caused application crashes. Let's disable this feature.
Closes #2123
2022-06-05 16:18:30 +09:00
Hajime Hoshi
2a6b53d96b
internal/gamepad: bug fix: wrong offset especially on 32bit Linux
...
Closes #2122
2022-06-05 12:49:23 +09:00
Hajime Hoshi
77b67d0fe6
update Oto: unix: use arecord -L to list devices
...
Closes #2118
2022-06-05 12:17:18 +09:00
Hajime Hoshi
aef06f3b91
update Oto: try other devices than 'default' when needed
...
Closes #2118
2022-06-04 22:57:46 +09:00
Hajime Hoshi
b3ddeb6456
Revert "internal/graphicsdriver/directx: bug fix: ID3D12Resource::Map sometimes needs retrying"
...
This reverts commit a9afacc8c6
.
Reason: The true culprit was #2117 . #2116 was not a bug.
Updates #2116
Updates #2117
2022-06-04 01:12:35 +09:00
Hajime Hoshi
a9afacc8c6
internal/graphicsdriver/directx: bug fix: ID3D12Resource::Map sometimes needs retrying
...
Updates #2113
Closes #2116
2022-06-03 22:04:18 +09:00
Hajime Hoshi
dbb8067761
internal/graphicsdriver/directx: bug fix: ID3D12Resource::Unmap does not return an value
...
Updates #2113
Closes #2115
2022-06-02 12:56:48 +09:00
Hajime Hoshi
331dbfd899
internal/gamepad: bug fix: out of range at hatState on Windows
...
Closes #2103
2022-05-25 11:45:04 +09:00
Hajime Hoshi
81ac97a9bd
cmd/ebitenmobile: update Go mobile to enable the latest Android SDK 24
...
Closes #2085
2022-05-19 09:03:40 +09:00
Hajime Hoshi
8024f70ba8
internal/processtest/testdata: add a test case for #2089
...
Updates #2089
2022-05-08 23:45:39 +09:00
Hajime Hoshi
39a4343116
internal/atlas: bug fix: wrong logic to create a new mask with edges
...
* Fixed wrong operator orders
* Cleared an allocated region explicitlly
Closes #2089
2022-05-08 23:09:40 +09:00
Hajime Hoshi
ed3e7eaf9e
inpututil: fix the comments
...
The unit of time is ticks, not frames.
Closes #2087
2022-05-06 20:43:29 +09:00
Hajime Hoshi
ea4dffbc71
internal/graphicsdriver/metal/mtl: bug fix: specify the language version explicitly
...
Updates #2086
2022-05-05 23:56:40 +09:00
Hajime Hoshi
9d9439751f
internal/graphicsdriver/directx: bug fix: the screen image can be nil when resizing the window
...
Closes #2081
2022-04-26 11:21:49 +09:00
Hajime Hoshi
45929e04e1
internal/ui: bug fix: deadlock at Layout with Ebiten's image functions called
...
Closes #2079
2022-04-26 01:14:40 +09:00
Hajime Hoshi
e6b1c81bda
update Oto to v2.1.0
2022-04-25 19:37:02 +09:00
Hajime Hoshi
cd917cc1d0
add Vivek Murali to AUTHORS
2022-04-24 12:16:08 +09:00
Vivek Murali
68f37bc7fd
vector: fix spelling error in vector/path.go ( #2078 )
2022-04-24 12:15:59 +09:00
Hajime Hoshi
3b97d09772
internal/gamepaddb: bug fix: crash at addAndroidDefaultMappings
...
Closes #2076
2022-04-19 23:38:14 +09:00
Hajime Hoshi
b37962e4ff
internal/atlas: potential bug fix: restore images before other image manipulations
...
From the reported stack trace, there could be a potential issue in
atlas.BeginFrame: images were manipulated before the images are restored.
Restoring images assumes that all images are not stale, but manipulating
images like putOnAtlas might cause other images stale in ReplacePixels.
Though we failed to reproduce the case, this fix should make sense.
Updates #2075
2022-04-18 02:45:41 +09:00
Hajime Hoshi
4a7fd6d78d
ebiten: fix a doc
2022-04-15 15:05:40 +09:00
Hajime Hoshi
25a16a2143
ebiten: fix a wrong comment at WindowResizingModeOnlyFullscreenEnabled
2022-04-15 14:27:45 +09:00
Hajime Hoshi
efe11b2890
ebiten: update comments about VibrateGamepad
2022-04-15 13:56:04 +09:00
Hajime Hoshi
46aceb19b4
cmd/ebitenmobile: adjust gomobile version
2022-04-13 23:50:19 +09:00
Hajime Hoshi
efdc13a1ca
ebiten: update the comments of the Game interface
2022-04-13 22:54:08 +09:00
Hajime Hoshi
5529ca2b58
update README
2022-04-12 22:23:19 +09:00
Hajime Hoshi
ab14c9ba9c
Revert "examples/vibrate: bug fix: touches didn't work correctly"
...
This reverts commit c790d8aa7a
.
Reason: This was not needed
2022-04-12 00:10:32 +09:00
Hajime Hoshi
c790d8aa7a
examples/vibrate: bug fix: touches didn't work correctly
2022-04-12 00:06:36 +09:00
Hajime Hoshi
93e9e8249f
update Oto to v2.1.0-rc.1
2022-04-11 11:31:08 +09:00
Hajime Hoshi
d189a120d2
update Oto
2022-04-11 10:56:42 +09:00
Hajime Hoshi
6b77e2edff
update go-mp3
2022-04-11 10:46:57 +09:00
Hajime Hoshi
699b58c02b
examples/flappy: bug fix: touches didn't work
...
Closes #2067
2022-04-11 10:44:41 +09:00