Skip to content

Commit f61e46d

Browse files
committed
small fixes
1 parent de57f22 commit f61e46d

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
gh release create $TAG_NAME \
9999
artifacts/i686-pc-windows-msvc-dll/${{ env.NAME_WIN32 }} \
100100
artifacts/x86_64-pc-windows-msvc-dll/${{ env.NAME_WIN64 }} \
101-
--title "v$TAG_NAME" \
101+
--title "$TAG_NAME" \
102102
--notes "Automated plugin release"
103103
env:
104104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/notify.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: Notify WaspLib2 of new release.
22

33
on:
44
release:
5-
types: [published]
5+
types: [created]
66

77
jobs:
88
notify:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Trigger repository_dispatch in target repo
11+
- name: Send notification
1212
env:
1313
TARGET_REPO: Torwent/WaspLib2
1414
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

src/client/hooks.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//Client sided code. Everything on this file is ran on client.
2-
31
use gl::{CURRENT_PROGRAM, VERTEX_ARRAY_BINDING};
42
use lazy_static::lazy_static;
53
use retour::GenericDetour;
@@ -303,8 +301,8 @@ unsafe extern "system" fn hooked_wgl_swap_buffers(hdc: HDC) -> BOOL {
303301

304302
restore_state(prev_program, prev_vao);
305303

306-
let detour = ORIGINAL_WGL_SWAPBUFFERS.get().unwrap();
307-
detour.call(hdc)
304+
let original = ORIGINAL_WGL_SWAPBUFFERS.get().unwrap();
305+
original.call(hdc)
308306
}
309307

310308
unsafe fn hook_wgl_swap_buffers() {

src/shared/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub static mut MODULE: HMODULE = HMODULE(null_mut());
5353
#[no_mangle]
5454
pub extern "system" fn DllMain(
5555
hinst_dll: HINSTANCE,
56-
fdw_reason: u32, // DWORD is u32 in windows crate
56+
fdw_reason: u32,
5757
_lpv_reserved: *mut c_void,
5858
) -> BOOL {
5959
unsafe { MODULE = HMODULE(hinst_dll.0) };

0 commit comments

Comments
 (0)