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
rdb
9dce403bee
tinydisplay: fix missing include in zmath.h
2023-10-14 18:05:47 +02:00
Mitchell Stokes
893f5ce492
Fix assert on Py_SIZE(long) when using Python 3.12
...
Starting with Python 3.12, passing a PyLong into Py_SIZE() triggers an
assertion. PyLong (and the whole C API) is transitioning to be more
opaque and expose fewer implementation details.
2023-10-13 10:54:33 +02:00
rdb
79a60688ce
pnmimage: Support reading of .bmp files with RLE8 compression
2023-10-11 15:53:57 +02:00
rdb
a2fa54f385
gobj: fix `_contexts != nullptr` assert when prepare fails
2023-10-09 16:52:45 +02:00
rdb
144479d8e4
cocoa: squelch secure restorable state warning on macOS 14
2023-09-16 09:50:17 +02:00
rdb
0bc290eb2c
event: Replace _PyGen_FetchStopIterationValue in Python 3.13+
...
See python/cpython#106320 and python/cpython#107032
Closes #1526
2023-08-05 16:37:01 +02:00
Aidan Noll
4097dc2e28
downloader: Fix issues with error codes with LibreSSL on Windows
...
Closes #1503
Co-authored-by: rdb <git@rdb.name>
2023-08-02 12:40:01 +02:00
rdb
262bde3082
grutil: Add clear_color method to CardMaker
2023-08-02 08:08:25 +02:00
rdb
3c9aea1ee1
text: Fix missing epvector.h include in textAssembler.h
2023-08-02 07:51:46 +02:00
rdb
787e14fade
egg2pg: Fix infinite recursion when `<Collide>` used with `<Line>`
...
Fixes #1515
2023-07-19 11:10:49 +02:00
rdb
94ebd7c953
pstats: Fix exception when `__module__` is a descriptor
...
This comes up when using metaclasses
Fixes #1505
2023-06-12 09:54:25 +02:00
rdb
b79d8efce6
Don't use RTTI features when building with `-fno-rtti`
...
This should make it possible to use `-fno-rtti` in a C++ application even when Panda has been compiled with RTTI enabled.
2023-05-25 14:11:51 +02:00
rdb
d2e93cc185
gobj: Fix post_load_store_cache field being uninitialized on cycle
...
This is randomly causing textures to be downloaded, which can be a significant performance drain
2023-05-25 13:55:22 +02:00
rdb
c958919037
Make API documentation for Filename and VirtualFileSystem clearer
...
Mention specifically that Filename methods act on the physical disk whereas VirtualFileSystem methods act on the VFS
Fixes #1493
[skip ci]
2023-05-08 11:19:03 +02:00
max
cc74efa79a
Fix assorted instances of leftover Python 3 syntax
...
Closes #1490
2023-05-05 11:08:17 +02:00
rdb
45fbfab094
pgraph: Add file_version property to BamFile (like BamReader/Writer)
2023-05-05 10:52:46 +02:00
rdb
749e297a02
putil: Add file_version property to BamWriter (mirroring BamReader)
2023-05-05 10:51:24 +02:00
rdb
86804b3ed1
putil: Fix a faulty docstring in BamReader
2023-05-05 10:48:04 +02:00
rdb
eb82dbc765
putil: Accept bytes in DatagramOutputFile::write_header()
2023-05-05 10:47:14 +02:00
rdb
87b46a61ed
display: minor doc fix and code cleanup
2023-05-05 10:45:26 +02:00
rdb
f5d5340ad3
egldisplay: make pbuffers resizeable
2023-04-08 10:37:13 +02:00
rdb
21d7a83bfc
egldisplay: Fix GL_INVALID_OPERATION with headless pbuffer
2023-03-29 16:33:33 +02:00
rdb
389b24e695
windisplay: Fix issues switching fullscreen while maximized
...
Fixes #1469
2023-03-13 10:53:47 +01:00
rdb
c5d6bae1c3
glgsg: Work around Panfrost driver bug with wireframe mode
2023-03-09 10:58:10 +01:00
rdb
a5be6fa5ff
pnmimagetypes: Fix compile error with some versions of png.h
...
Some define these as macros, which interferes with these definitions
2023-02-24 22:21:27 +01:00
rdb
aaabb6a652
Fix assorted issues uncovered by clang-tidy
2023-02-12 13:55:59 +01:00
rdb
914993f31b
putil: Fix SimpleHashMap error reporting at static init time
2023-02-12 13:49:44 +01:00
rdb
173dd67b52
glgsg: Fix p3d_LightModel.ambient not updating properly
2023-02-12 13:07:14 +01:00
rdb
3d7c2505e9
pnmimagetypes: Fix memory leaks writing TIFF files
2023-02-11 15:21:16 +01:00
rdb
718bac1c69
audiotraits: Fix crash when encountering corruption in OpenAL stream
...
Partial backport of #1452
2023-02-03 14:44:14 +01:00
rdb
a20996d2aa
pgraphnodes: Support missing texture types in shader generator:
...
- Cube arrays
- 1D texture arrays
- Buffer textures
Not to say that they are displayed meaningfully, but better than a cryptic error message.
2023-01-31 17:40:55 +01:00
rdb
d69d393e4c
glgsg: Set ultimate Cg profiles to gp5vp/gp5fp/gp5gp
...
These support the most features, including cube map arrays (which aren't even supported in glslv/glslf)
This improves the quality of error messages, eg. using cube map arrays will no longer display a cryptic error about no overload of texCUBEARRAY() being available
2023-01-31 17:38:54 +01:00
rdb
52c7d6bddb
shader: Add missing handling for 1D array textures in Cg shaders
2023-01-31 17:37:18 +01:00
rdb
51d0a55264
general: Fix silly new clang warning about unprefixed `std::move()`
2023-01-31 15:38:02 +01:00
rdb
614502d183
gobj: Add note to API doc about maximum stride value
2023-01-31 15:36:43 +01:00
rdb
c5ccd6232d
glgsg: Prevent exceeding max supported vertex attrib stride
...
See also Moguri/panda3d-gltf#117
2023-01-31 15:30:52 +01:00
rdb
ef58255abd
vision: Fix another use of wrong delete operator in ARToolKit code
2023-01-27 10:40:47 +01:00
LD
518ee0fb8e
cocoadisplay: Capture display before switching to fullscreen mode
2023-01-20 18:16:43 +01:00
rdb
4b992105e1
ShaderGenerator: Fix support for hardware point sprites
...
In gp5fp and glslf profiles, we can rely on per-fragment point coordinates to be available, otherwise we have to emulate support by calculating it from the fragment pixel coordinates
2023-01-16 19:33:09 +01:00
rdb
e696ac4046
cocoa: Fix black bar when switching to fullscreen while z-order is top
2023-01-13 22:05:06 +01:00
rdb
76386bc4c0
cocoa: Fix window sizing bug when simultaneously changing undecorated
2023-01-13 22:04:42 +01:00
rdb
8c5e2e74f5
cocoa: Fix undecorated setting ignored when switching off fullscreen
2023-01-13 22:03:33 +01:00
rdb
7a8e218da7
glgsg: Correctly handle 4-component texcoords in default shader
2023-01-13 19:35:45 +01:00
rdb
67c413f089
dxgsg9: Fix issues setting some kinds of automatic shader inputs
2023-01-13 19:19:16 +01:00
rdb
709555577f
ShaderGenerator: Add support for perspective points
...
Fixes #1440
2023-01-13 19:12:01 +01:00
rdb
6ad50b5cb1
ShaderGenerator: implement remaining missing TexGenAttrib modes
...
Fixes #1437
2023-01-13 17:04:04 +01:00
rdb
10f4c6bb21
shader: Add texconst_i shader input for Cg shaders to access TexGen constant
2023-01-13 17:02:15 +01:00
rdb
21347bb2d5
glgsg: Fix bug if same texture is used with different tex gen modes in FFP
2023-01-13 17:00:12 +01:00
rdb
86a1973f89
x11display: Clean up cursor filename map after freeing it
...
Not essential, but slightly neater
2023-01-13 14:53:25 +01:00