Commit Graph

11192 Commits

Author SHA1 Message Date
rdb 89c0371cbb putil: BamWriter doc fix, initialize _root_node field properly 2024-10-31 13:07:02 +01:00
rdb 2a6f4fc6ff putil: Fix file_texture_mode on BamWriter not being writable 2024-10-31 13:07:02 +01:00
rdb 32ad388a51 gobj: Don't try to resolve empty alpha filename when writing bam 2024-10-31 13:07:02 +01:00
rdb f47b34d2a1 Fix remaining uses of ._PyType member in extension code
This should be replaced with Dtool_GetPyTypeObject, hiding the implementation details a bit so that we can more easily change the underlying structure if we need later

Also adds Py_NewRef to py_compat.h, backporting from master
2024-10-30 13:26:34 +01:00
rdb 0ba2aadcd6 Introduce Py_IS_TYPE, use for Py_TYPE comparisons 2024-10-30 13:17:11 +01:00
rdb 64454b1c9f Replace direct uses of ob_type, which gives problems in nogil build 2024-10-30 13:17:11 +01:00
rdb 9cbc45b9bf collide: Handle CollisionBox bam read without 2D info 2024-10-28 11:57:27 +01:00
rdb d758d2b232 pgui: Fix crash when PGEntry removes itself w/ background focus
Fixes #1650
2024-10-24 16:41:56 +02:00
rdb 822d35d15b putil: Minor SimpleHashMap::remove() optimization 2024-10-14 14:26:20 +02:00
rdb 52a7224d6e Fix various compiler warnings 2024-10-14 12:05:27 +02:00
rdb cd2e3dfde9 dxgsg9: Fix crash on window event after close_window() 2024-10-10 01:08:54 +02:00
rdb beb49b3cd3 dxgsg9: Fix some format handling, support for r32f and rgba32f textures 2024-10-03 13:43:22 +02:00
rdb 0ea0d5fa2b dxgsg9: Fix crash when copying inverted framebuffer to texture RAM 2024-10-03 13:36:02 +02:00
rdb 51876c6116 dxgsg9: Fix crash with buffer when there is no depth buffer 2024-10-03 13:36:02 +02:00
rdb c05a63f4ae pipeline: Fix compile error without pipelining enabled
Closes #1684

[skip ci]
2024-09-21 10:55:05 +02:00
rdb cdafd81764 Fix compilation issues with Python 3.13 2024-09-19 15:47:50 +02:00
rdb d7ede81aa3 cocoa: Fix compile error with MacOSX 10.6 SDK 2024-09-19 11:15:44 +02:00
rdb 9f493f588d display: Fix significant memory leak on newer macOS versions
It seems the Metal-based OpenGL driver uses autorelease a lot for resources that last only a single frame, so we need to create an autorelease pool around the frame lest the resources will only get cleaned up at application exit.
2024-09-19 00:23:06 +02:00
rdb 756fe2e72b cocoa: Fix a very minor memory leak in DisplayInformation 2024-09-18 23:51:09 +02:00
rdb e2fb2d1241 cocoa: Prevent eating keyUp when switching to FS from macOS' FS 2024-09-16 13:39:16 +02:00
rdb c7bcec1ff5 cocoa: Exit macOS' fullscreen mode when switching fullscreen
Prevents black screen when switching to fullscreen
2024-09-16 13:39:16 +02:00
rdb 82b9a1266c cocoa: Fix error when switching to FS while macOS' FS is active 2024-09-16 13:39:16 +02:00
rdb 9e87af9dd7 linmath: Fix compiler warning with gcc 14 2024-08-14 19:09:20 +02:00
rdb 8d1524b675 distort: Fix unprotected debug output 2024-08-14 19:09:08 +02:00
rdb 8c8cbeea98 linmath: For repr, use as much precision as needed for roundtrip
Will use as few digits as is necessary to ensure that round-tripping the same number with pstrtod will result in the same vector.  This prevents eg. 3.3 formatting as 3.29999995 while still ensuring that two floats that are not equal (other than nan) are guaranteed to have a different string representation.

Uses a hacky pftoa function that can be abandoned as soon as we adopt C++17, which has to_chars that does what we need

Fixes #1671
2024-08-07 17:24:11 +02:00
rdb 122453811d glgsg: Fix clear of offscreen buffer if back buffers requested 2024-06-30 11:53:17 +02:00
rdb a655784d8d x11: attempt to fix UTF-8 window titles (see #209) 2024-05-16 20:30:27 +02:00
rdb 2436a06527 glgsg: Better error when invalid ShaderPtrSpec type is encountered 2024-05-14 22:45:01 +02:00
Disyer a9206041d9 ffmpeg: Use ch_layout in favor of removed channel_layout and channels
Closes #1641
2024-04-08 13:32:51 +02:00
rdb 5da013e2e9 text: Properly handle surrogate pairs in text on Windows
Fixes #1629
2024-04-08 12:12:00 +02:00
rdb 2adc167f26 windisplay: Fix regression related to fullscreen switching
Fixes #1594
2024-04-08 11:29:43 +02:00
rdb 0e2a706ec8 audio: Fix changing sound time not working on macOS
Fixes #1607
2024-03-27 12:02:12 +01:00
rdb 237d27dfd9 text: Error instead of crash when glyph does not fit into page
Fixes #1626
2024-03-27 10:59:52 +01:00
rdb 8ea2301d16 pgui: Fix PGEntry::get_cursor_Y()
It returned the Y position, which is always 0.0, instead of the Z position.

Fixes #1633
2024-03-27 10:22:54 +01:00
rdb 06e72b5d7d text: Add docstring for set_text_color()
Fixes #1621
2024-03-27 10:06:39 +01:00
rdb f7cca55e14 pnmimagetypes: Fix double return statement in bmp.h
Fixes #1628

[skip ci]
2024-03-12 17:28:05 +01:00
rdb c4adc17d55 display: Fix assorted unreachable code warnings 2024-03-12 15:30:32 +01:00
rdb bfe1c95d29 pgraph: Python wrappers for TransformState getters no longer return reference to temporary
Fixes #1625
2024-03-12 15:29:54 +01:00
rdb 3303bac902 x11: Fix error message when xf86dga extension is not found
[skip ci]
2024-02-09 15:06:27 +01:00
rdb b49dbaca2b Report errors if calls to close() fail 2024-01-25 12:33:20 +01:00
kamgha fe63dee524 Assorted docstring fixes
Closes #1588
2024-01-08 19:53:46 +01:00
rdb 6b3dfc7e16 pgraph: add note to LensNode::is_in_view docstring about CS
Closes panda3d/panda3d-docs#143
2024-01-04 16:22:41 +01:00
jb 7277199d6e windisplay: fix handling of invalid devices, replaced 0 with nullptr
Fixes #1559
Closes #1563
2023-12-10 13:24:31 +01:00
Ian Eborn (Thaumaturge) 1c4a91858b grutil: Change docstring for MeshDrawer link_segment method
In short, this adds notes regarding the manner in which the method makes use of the "frame" and "color" parameters.

Fixes #1560
Closes #1569
2023-12-10 13:21:12 +01:00
rdb be958c409f recorder: Fix error reading multiple recorders from .bam file
Modified version of #1564 without changing ABI

Fixes #1561
2023-12-10 13:18:47 +01:00
rdb 4f37d97cf6 glgsg: Show internal format in debug output 2023-12-10 13:18:23 +01:00
rdb 89701270dd gles2gsg: Fix image load/store support in OpenGL ES 3.1
This does require gl-immutable-texture-storage to be on, so it is not enabled by default unless that variable is set. That is not a breaking change since before this change, support was never enabled to begin with
2023-12-09 21:15:28 +01:00
Dakota Smith 3097d2637c bullet: Fix deadlock when contact added callback accesses certain data or executes bullet methods 2023-11-19 02:17:54 +01:00
git2323 f9a86bced6 device: fix small typo, fixes 1571 (#1572) 2023-11-18 11:49:53 +01:00
rdb eec66c585e display: Add method for querying current display mode index
Note that it doesn't work on macOS with high-DPI displays, this requires #1308 (which is on master), otherwise it will just report -1 for now

Fixes #1550
2023-10-21 14:03:51 +02:00