Commit Graph

12267 Commits

Author SHA1 Message Date
burningbuffer 5965d5bbec
windisplay: Prevent window resize to zero (#1705) 2024-12-21 18:53:07 +01:00
rdb 899af61e2a pgraph: Fix ModelPool return value reference count 2024-12-19 16:18:17 +01:00
rdb e43dc87df5 Fix unit test failures on Python 3.13 2024-12-14 15:25:03 +01:00
rdb 3f2b9cd351 pgraph: Make ModelPool.load_model() work same as Loader.load_sync()
ModelPool.load_model() did not work like the other pools, didn't resolve relative to the VFS, didn't respect loader options... let's just make these work the same.  We should deprecate one in favor of the other eventually
2024-12-14 13:25:12 +01:00
rdb 5e05049725 collide: Add custom owner field to CollisionNode
This stores a weakref to a custom Python object, useful for being able to look up the game object corresponding to a particular collision node in an event without the downsides of Python tags

Fixes #1703
2024-12-14 12:48:24 +01:00
rdb 6f33bbecea glgsg: Fix use after free with gl-force-fbo-color and layered FBO 2024-12-03 13:19:48 +01:00
rdb 26dd784153 gobj: Make BufferResidencyTracker::_residency a const field 2024-12-03 13:19:17 +01:00
rdb ff111132f4 android: Draw to whole window, ignoring contentRect
This contentRect is quite odd and blocks out a big chunk at the top of the screen which doesn't really seem to correspond to anything
2024-11-27 18:11:10 +01:00
rdb 46e90058b9 android: Fix crash on shutdown if stdout/err is not redirected 2024-11-27 00:09:02 +01:00
rdb a32030d46e framework: Clean up task manager on close_framework()
This prevents crashes due to the tasks it spawns continuing to run
2024-11-26 18:16:01 +01:00
rdb ff3e7da752 pipeline: Never try to detach external pthread (fixes Android crash) 2024-11-26 17:02:26 +01:00
rdb ac68b85d1f shader: Fix compilation warning 2024-11-26 16:42:45 +01:00
rdb 347164103c text: Don't try to use harfbuzz if freetype is not enabled either 2024-11-26 16:42:21 +01:00
rdb c31041c8cc android: Fix assorted errors and deprecations 2024-11-26 16:42:02 +01:00
rdb 639497310e windisplay: Fix recursive loop in adjust_z_order 2024-11-14 20:21:04 +01:00
rdb 22381c94d4 pgraphnodes: Disable lighting when rendering shadow cam
This prevents accessing a texture (the shadow map) that we're currently rendering into.  Hopefully a reasonable driver was already optimizing out the access properly due to the color write being off, but it could cause unnecessary work in the driver

This will have the effect of the shader generator generating a different shader for the shadow pass than for the main pass, ideally we optimize the shader generator a bit more so that there are fewer shaders generated for the shadow pass.
2024-11-14 20:11:39 +01:00
rdb d173086a6f putil: Fix SparseArray get_lowest_on_bit and get_lowest_off_bit 2024-11-14 20:09:29 +01:00
rdb 804d49fdbb tinydisplay: Fix extracted texture not having sRGB format 2024-11-09 19:03:51 +01:00
rdb 2b88594421 tinydisplay: Fix vertex color being multiplied in even with material present 2024-11-09 19:03:27 +01:00
rdb 134f0bbc83 tinydisplay: Fix material diffuse being ignored with only ambient light 2024-11-09 19:02:54 +01:00
rdb 05d23cae35 tinydisplay: Set correct number of depth bits in buffer 2024-11-09 19:02:28 +01:00
rdb d23e44e2f1 Merge branch 'release/1.10.x' 2024-11-08 11:36:02 +01:00
rdb a6a386aab3 text: Fix text-native-antialias not properly taking effect 2024-11-07 11:34:02 +01:00
rdb b51dd4d7bc Merge branch 'release/1.10.x' 2024-11-06 22:52:54 +01:00
rdb 16431748de parametrics: fix RopeNode breaks due to float imprecision
Fixes #1325
2024-11-06 22:51:40 +01:00
rdb 0a4d22ad9f express: Fix VFS mount points not being listed as directories
Fixes #1244
2024-11-06 13:20:03 +01:00
rdb c060b2f3fe linmath: Fix vector printing issues with big values on emscripten 2024-11-03 23:59:23 +01:00
rdb 8ff71aeb15 webgl: Fix precision issues with default shaders 2024-11-03 23:58:28 +01:00
rdb 6823634f60 cull: Use more efficient arena allocation for CullableObject 2024-11-03 16:24:14 +01:00
rdb 7926d1047e text: Unbreak small caps support with text-use-harfbuzz
Fixes #1666
2024-10-31 15:01:06 +01:00
rdb 55fa0e9912 Merge branch 'release/1.10.x' 2024-10-31 13:13:00 +01:00
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 6d54aee0c7 Remove runtime dependency on interrogatedb 2024-10-30 17:46:26 +01:00
rdb 7560a1edd1 Merge branch 'release/1.10.x' 2024-10-30 13:42:21 +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 71e2b7fff6 collide: CollisionBox cleanup, remove redundant code, reduce mem use 2024-10-28 09:20:33 +01:00
rdb a1fd79c80b collide: Rewrite sphere-into-box collision test
More reliable, possibly also better performance (but haven't profiled)

Fixes #1673
2024-10-28 00:57:51 +01:00
rdb 3d432ed8b2 collide: Fix sphere coming out wrong end of sphere with respect-prev-transform
Even with respect-prev-transform, it was still possible to tunnel through another sphere if the new position is colliding with it but close to the opposing edge, since it would only activate the respect-prev-transform check if the new position isn't colliding.
2024-10-27 17:54:30 +01:00
rdb 5f96cc592e Merge branch 'release/1.10.x' 2024-10-27 09:40:52 +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 583f7366db linmath: Significant perf optimizations for decompose_matrix 2024-10-19 13:17:19 +02:00
Yonnji c6ed5acdc2
fix building panda (#1694) 2024-10-18 14:03:15 +02:00
gabe ad97e88a54
Enable OpenAL-Soft extensions for non-framework builds and add config for disabling HRTF (#1620) 2024-10-17 21:34:32 +02:00
rdb 905a7dd482 glgsg: Fix missing include 2024-10-17 16:23:36 +02:00
rdb 7c9c4cd435 gobj: devirtualize calls to GeomPatches::get_num_vertices_per_primitive() 2024-10-17 16:18:12 +02:00