Skip to content

Commit

Permalink
Merge pull request #98 from gucio321/fix-concurrency
Browse files Browse the repository at this point in the history
extra types: fix data race issues
  • Loading branch information
AllenDang authored Jan 21, 2023
2 parents c134d03 + 3529d87 commit 0cdb348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extra_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "image/color"
type (
Wchar C.uint
ID C.ImGuiID
TextureID uintptr
TextureID C.ImTextureID
DrawIdx C.ImDrawIdx
TableColumnIdx C.ImGuiTableColumnIdx
TableDrawChannelIdx C.ImGuiTableDrawChannelIdx
Expand Down
2 changes: 1 addition & 1 deletion texture.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Texture struct {
func NewTextureFromRgba(rgba *image.RGBA) *Texture {
texID := CreateTextureRgba(rgba, rgba.Bounds().Dx(), rgba.Bounds().Dy())

if texID == 0 {
if texID == nil {
return nil
}

Expand Down

0 comments on commit 0cdb348

Please sign in to comment.