rdb
57d7bc2f53
display: document make_texture_buffer() behavior when size is 0
...
Fixes panda3d/panda3d-docs#100
2021-10-26 14:00:25 +02:00
rdb
9b55279fde
glgsg: Minor code cleanup in FBO code
2021-10-26 14:00:04 +02:00
rdb
618e6f3fee
pgui: Fix slider thumb entering dragging state on button press
...
This caused updating the slider while a button is pressed and the mouse is held over the thumb not to work.
Fixes #1188
2021-10-26 13:45:38 +02:00
rdb
2b0571ee92
glgsg: Also pick up glClearTexSubImageEXT in OpenGL ES 2+
2021-08-31 15:37:21 +02:00
rdb
1739cef318
Merge branch 'release/1.10.x' into incoming
2021-08-31 14:03:57 +02:00
rdb
c96189e53c
display: Fix compilation on Windows (can't name variables near/far)
2021-08-31 14:01:03 +02:00
rdb
cb4bcbe67e
collide: Fix typo causing compile error on Windows with Python 3.10
2021-08-30 21:27:53 +02:00
rdb
2cc1633a77
pgraph: Clarify in find() documentation that this node not included
2021-08-30 14:03:17 +02:00
rdb
8c01f7faff
gles2gsg: Implement support for GL_EXT_clear_texture in OpenGL ES 2+
2021-08-30 14:02:41 +02:00
rdb
481fc67996
gles2gsg: Support gl-depth-zero-to-one in OpenGL ES 2+
...
Requires GL_EXT_clip_control support in the driver.
2021-08-30 14:02:09 +02:00
rdb
32b78a382a
express: Protect clock debug print with is_debug() check
2021-08-30 14:00:59 +02:00
rdb
53741ffa13
pgraph: Implement new DepthBiasAttrib to replace DepthOffsetAttrib
...
Fixes #1157
2021-08-26 10:47:07 +02:00
rdb
280175f267
display: Support specifying depth range on DisplayRegion
...
See https://discourse.panda3d.org/t/depthoffsetattrib-z-range-composition-order/27943/4
2021-08-26 10:42:25 +02:00
rdb
3d4dd50358
Merge branch 'release/1.10.x'
2021-08-11 15:02:05 +02:00
rdb
8ad4234df8
pgui: prevent error when rendering in offscreen mode
...
Fixes #1174
2021-08-11 09:19:27 +02:00
rdb
20e081482f
glgsg: detect and fix overlapping SSBO bindings
...
Fixes #1176
2021-08-05 09:37:26 +02:00
rdb
c293ad3da2
Merge branch 'release/1.10.x'
2021-08-03 20:19:15 +02:00
rdb
5b30fa7adf
putil: Fix reading/writing BitArray from/to bam file on 64-bit
...
Fixes #1181
2021-08-03 20:13:56 +02:00
rdb
7ac7a95843
glgsg: Delete multisample FBO properly
...
Related to #1166
2021-08-03 11:43:49 +02:00
rdb
1f84469cd9
filter: Fix issue with cached CullResult persisting after cleanup
...
This can cause issues if a DR gets assigned an inactive camera - the old cull result will persist and be used for draw. Possibly we need to do this in set_camera.
Reproduced by #1166
2021-08-03 11:43:49 +02:00
rdb
ea45ff691d
display: Improve error message when display module isn't loaded
2021-08-03 11:43:49 +02:00
rdb
3dc09c38d3
dxgsg9: Fix crash when resizing window in multi-window setup
...
Fixes #1167
2021-07-31 09:56:52 +02:00
rdb
089a615adb
pgui: If no explicit candidate_inactive style given, use underscore
2021-07-05 18:01:05 +02:00
rdb
4cd579d0ba
x11: Implement ime-aware setting using XIM
2021-07-05 17:53:19 +02:00
rdb
4ba3df7082
pgui: Fix missing cursor when typing candidate
2021-07-05 17:37:48 +02:00
rdb
25f9d3ff13
pgui: Don't clear candidate on keypresses like shift/ctrl etc
2021-07-05 17:37:15 +02:00
rdb
f27e9b2a86
linmath: Add __rmul__ operator for left scalar multiplication
...
Fixes #1048
2021-07-05 14:16:55 +02:00
rdb
bfe595f4dc
glgsg: Implement partial updates of texture arrays / cube maps
...
Also, simplify the cube map upload mechanism somewhat.
Fixes #1168
2021-07-04 17:03:14 +02:00
rdb
494631ac54
gobj: Implement texture modification tracking for individual pages
...
Part of #1168 , GL implementation in following commit
2021-07-04 16:36:26 +02:00
rdb
77f486a07b
putil: Improve SparseArray output printing
2021-07-04 16:35:11 +02:00
rdb
0c5fedfc9b
Merge branch 'release/1.10.x'
2021-07-02 16:03:41 +02:00
rdb
0e219fa5c9
display: Remove obsolete mouse_mode_relative/absolute methods
2021-07-02 16:00:41 +02:00
rdb
bcbef3f6c8
pgraph: Add RenderState::get_unused_states() by analogy with TransformState
2021-07-02 15:22:44 +02:00
rdb
1415ccca61
pgraph: Fix assertion error in get_num_unused_states()
...
Fixes #1172
2021-07-02 15:11:33 +02:00
rdb
388ddda9d7
x11: Fix black screen when switching fullscreen without WM
...
Reconfiguring the window to origin 0, 0 is unnecessary and if the win origin is already 0, 0 this results in Panda waiting for a ConfigureNotify that never comes.
2021-07-02 14:04:57 +02:00
rdb
199b797d72
Merge branch 'release/1.10.x'
2021-06-01 11:50:12 +02:00
Ben Humphries
0415a08416
cocoadisplay: Round refresh rates when choosing display mode on macOS
...
Closes #1144
Co-authored-by: rdb <git@rdb.name>
2021-06-01 10:56:55 +02:00
rdb
2386e80448
linmath: Backport support for floor division to 1.10
...
Backport of 8944737844
(Also fixes return type of `__pow__` to always be derived class)
2021-06-01 10:45:56 +02:00
rdb
4e0e945279
linmath: Backport round(), floor(), ceil() support for vectors
...
See #821
2021-06-01 10:23:58 +02:00
rdb
42d292ee17
glgsg: Slight optimization, don't get texture type more than once
2021-06-01 10:00:43 +02:00
rdb
967fbbc49e
glgsg: Fix regression uploading buffer texture with null image
...
Regression in c1babd1ad1 - it caused an assertion to be thrown when uploading a buffer texture without a RAM image.
2021-06-01 09:56:04 +02:00
rdb
c9508f3215
task: Prevent error indicator being sporadically cleared
2021-05-31 17:44:57 +02:00
rdb
e63eab9aa2
Merge branch 'release/1.10.x'
2021-05-31 17:44:53 +02:00
Paul m. p. P
70ac82d5da
bullet: Fix compilation issue with BulletHeightfieldShape
...
Fixes #1161
2021-05-31 17:43:50 +02:00
rdb
1d2407f667
ffmpeg: Fix compile error with latest ffmpeg version
...
Fixes #1164
2021-05-17 11:19:55 +02:00
rdb
571946739e
task: Fix cancelling gather() of tasks
2021-05-11 12:21:37 +02:00
rdb
91a6ff1d81
task: Prevent "unexpected task state" when cancelling task sometimes
2021-05-11 12:21:30 +02:00
rdb
55fb14b792
Merge branch 'release/1.10.x'
2021-05-11 12:21:24 +02:00
rdb
9410418840
pnmimagetypes: Changes to support compilation with OpenEXR 3.0.1
2021-05-11 11:38:40 +02:00
rdb
2ed61c91fc
gobj: make_lines_in_place() (& points, patches) should change primitive type
2021-05-10 13:35:47 +02:00
rdb
c1babd1ad1
texture: Don't try to compress buffer textures by default
...
Buffer textures don't support compression, so we shouldn't try to driver-compress them, and we should not try to compress the RAM image unless explicitly overridden.
2021-04-29 20:33:52 +02:00
rdb
5ef1b44455
event: cancel future being awaited when cancelling coroutine task
...
Fixes #1136
2021-04-18 17:05:00 +02:00
rdb
cdf5b16ddd
task: Add AsyncFuture::shield() ability, part of #1136
...
This is modelled after `asyncio.shield()` and can be used to protect an inner future from cancellation when the outer future is cancelled.
2021-04-09 18:28:07 +02:00
rdb
e9e1bb1bc6
dtoolutil/express: Resolving empty filename should yield no result
...
See #1140 - I may revert this if someone can demonstrate a compelling use case (for current directory, you can use "." instead), but it seems to have the potential to cause unintuitive behavior.
2021-04-09 18:26:00 +02:00
rdb
47f35a287c
Merge branch 'release/1.10.x'
2021-04-09 18:25:57 +02:00
rdb
69c6050fa8
glgsg: Only copy depth of 32-bit float depth-stencil framebuffer
...
We don't support float-32-unsigned-int-24-8 component types in texture yet, so this is the only choice. Avoids a GL error when binding to RTP_depth_stencil slot.
Fixes case 2 of #1142
2021-04-09 10:47:54 +02:00
rdb
715d786813
display: Prevent attempt to copy depth from non-depth framebuffer
...
Fixes case 1 of #1142
2021-04-09 10:45:22 +02:00
rdb
99a3188af2
glgsg: Fix missing component types in glReadPixels spam message
2021-04-09 10:30:45 +02:00
rdb
31feeb9b9f
glgsg: Fixes to format selection for copy-to-ram of framebuffer
...
Fixes #1141
2021-04-08 18:46:10 +02:00
rdb
eee1426e37
glgsg: Fix ability to get r11g11b10 float renderbuffer
2021-04-08 18:44:52 +02:00
rdb
dd3510eea7
Merge branch 'release/1.10.x'
2021-04-08 12:30:35 +02:00
rdb
4a7d03d9b1
pnmtext: Fix loading an invalid font resulting in a crash
...
Related to #1140
2021-04-08 12:08:03 +02:00
rdb
ab4367ee7b
glgsg: Fixes to format selection in OpenGL renderbuffers
...
Fixes #1137
2021-04-07 00:20:38 +02:00
rdb
bcb61fec09
pgraphnodes: Fix draw callback called twice in certain cases
...
This would happen if you call upcall() in a CallbackNode's cull callback.
2021-04-06 16:38:51 +02:00
rdb
51a6923008
device: Work around FreeBSD kernel bug for querying gamepad axes
...
This is to support older kernels, which always returned 0 from successful ioctl, rather than the number of bits. This was fixed in the FreeBSD kernel trunk.
2021-04-05 17:19:47 +02:00
rdb
7be4b7c3bb
device: Support evdev gamepads on FreeBSD
2021-04-05 17:14:30 +02:00
rdb
e034e7f4b3
Merge branch 'release/1.10.x'
2021-03-31 23:08:21 +02:00
rdb
fa73657d03
pgui: Revert part of f2e488fd6b
...
This caused a regression due to a removal of update_frame invocation in single-threaded pipeline, needs to be revisited later on master branch
2021-03-31 17:27:11 +02:00
rdb
43fb82fa66
gobj: Add config switch for Panda not to default to packed vertex colors
...
See #981 . Setting `vertex-colors-prefer-packed` to false will make Panda default to OpenGL-style vertex colors, which is useful if are targeting OpenGL and not DirectX 9, avoiding a potential performance cost.
2021-03-25 23:15:58 +01:00
rdb
b405df72fa
Merge branch 'release/1.10.x'
2021-03-25 23:13:36 +01:00
rdb
c36fa1ef17
glgsg: Workaround driver bug causing flickering in AMD RDNA cards
...
Apparently, the use of glColorPointer with GL_BGRA causes these cards to display garbled vertex colors (tested with RX 5700 XT). This bug doesn't seem to affect glVertexAttribPointer.
The "fix" is to just disable packed-dabc colors if these cards are detected. This may cause a minor performance regression since the vertex data now needs to be munged--possibly even unnecessarily, if shaders are used, but this effect is likely very minor (and can be addressed in other ways).
Fixes #981
2021-03-25 23:12:35 +01:00
rdb
6e0af8abe4
physics: Fix Mac OS X 10.6 compilation issue with <atomic> header
2021-03-25 15:37:52 +01:00
rdb
eb6eb9f1dd
Merge branch 'release/1.10.x'
2021-03-24 13:58:00 +01:00
rdb
8372b8150a
gobj: Cube map sampling support in TexturePeeker
...
Closes #1098
Co-authored-by: Mitchell Stokes <mogurijin@gmail.com>
2021-03-24 12:50:42 +01:00
LD
23150bd6d6
pgraph: Add the shader attrib to the filled wireframe render state
...
Fixes #1021
Closes #1124
2021-03-23 16:18:00 +01:00
rdb
94806801e3
Add p3headlessgl render plug-in on Linux using EGL as fallback for GLX
...
Fixes #1086
2021-03-23 15:04:20 +01:00
rdb
3ecc8c857a
gobj: Also fix GeomPrimitive::offset_vertices() overload with begin/end
...
See 40b94c1f97
2021-03-22 22:04:03 +01:00
rdb
d0028ba103
physics: Make PhysicalNode class thread-safe
...
It is, however, not yet pipeline-cycled, and the Physical object itself is not yet thread-safe.
2021-03-22 16:01:13 +01:00
rdb
0e36a99574
Merge branch 'release/1.10.x'
2021-03-22 15:45:45 +01:00
rdb
8f55d32cb1
glgsg: Workaround for Cg shader issue with multiple GSGs
...
Fixes #1117
2021-03-22 15:37:43 +01:00
rdb
40b94c1f97
gobj: Fix GeomPrimitive::offset_vertices() with strip cut index
...
This was called, among other things, by the egg-unify process, which could ruin the strip cut index.
At the same time, I've reimplemented the indexed case for offset_vertices() to make it a little bit more efficient.
Fixes #1122
2021-03-22 11:35:03 +01:00
rdb
c1fbb70c6d
display: Temporary fix for base.win.properties.size et al
...
Previously, calling that without storing a temporary object would cause the WindowProperties to go out of scope and the return value to point to random memory.
2021-03-21 16:55:19 +01:00
rdb
f450aa5edf
physics: Add additional properties
2021-03-21 14:40:10 +01:00
rdb
db2936a318
physics: Slight code cleanup in PhysicalNode::clear()
2021-03-21 14:39:57 +01:00
rdb
f1782d73e5
physics: Fix crash in PhysicsNode::add_physicals_from()
2021-03-21 14:39:31 +01:00
rdb
74910ff310
physics: Don't assert destructing
...
This could have been produced with make_copy(), which can create a situation where the Physical objects don't have the same node associated -- see b6a118448d
2021-03-21 14:36:14 +01:00
rdb
b6a118448d
physics: Warn when copying PhysicalNode with physicals attached
...
We can't currently support this because a Physical can have only one PhysicalNode associated.
2021-03-21 14:35:28 +01:00
rdb
1c754738bd
physics: Prevent adding same Physical to more than one PhysicalNode
...
Also silently ignore if the same Physical is added to the same PhysicalNode more than once.
2021-03-21 13:00:08 +01:00
rdb
52c0e2759e
glgsg: Fix copy-to-texture/ram for multisample FBO
...
Should read from resolved FBO, not from multisample FBO
Fixes #1129
2021-03-16 18:45:27 +01:00
rdb
b817e19ab6
Merge branch 'release/1.10.x'
2021-03-13 16:50:12 +01:00
LD
209e031964
cocoadisplay: Test all the fullscreen modes to find the valid one
...
Closes #1039
2021-03-13 12:44:30 +01:00
rdb
eca18f3c19
windisplay: Don't try to activate window when resizing/moving it
...
This fixes an issue where if you quickly alt-tab when the window opens, it receives a WM_ACTIVATE event and thinks it continues to be active, which causes issues with applying cursor confinement.
I think you can probably still reproduce that issue, but your reflexes have to be significantly more ninja now.
2021-03-11 23:50:45 +01:00
rdb
7f4d030032
windisplay: Fix some situations in which the mouse could stay confined
...
Fixes #1115
2021-03-11 23:29:13 +01:00
rdb
c1c2183561
windisplay: Parented child windows are implicitly undecorated
...
I'm pretty sure applying these styles does nothing anyway, but we shouldn't specify them.
2021-03-11 22:30:35 +01:00
rdb
48fb2f721f
windisplay: Fix parented child window being offset
...
This would happen if the undecorated flag is not set; it would receive an additional offset equal to the size of the window decoration.
Fixes regression presumably caused by a968caf1d2
2021-03-11 22:19:41 +01:00
rdb
ff80adc680
Merge branch 'release/1.10.x'
2021-03-05 11:59:21 +01:00
rdb
5cadd86d1e
glgsg: Fix get_screenshot() for multisample FBOs
...
An FM_refresh bind should not bind the multisample FBO, but the resolved one (and while we're at it, FM_refresh should not try to resolve multisamples).
2021-03-05 11:57:05 +01:00
rdb
b4a242a4e3
x11: Provide labels for more keys (esp. international keys)
2021-03-04 21:49:55 +01:00
rdb
2e3ce27865
device: Add Windows gamepad mapping with VID:PID 2563:0523
...
From https://discourse.panda3d.org/t/gamepad-emulator-and-panda/27336
2021-03-04 20:47:55 +01:00
rdb
9be2f307c5
text: Fix glyphs with flipped UVs not being processed correctly
...
This caused the cheesy-accent code to not flip the caron correctly.
2021-03-04 20:06:51 +01:00
rdb
050d86dadb
event: AsyncFuture::set_result() behavior changes:
...
* Passing a Python subclass of a C++ class now works, the extra Python stuff isn't just discarded
* EventParameter objects are no longer automagically unwrapped - there's no more reason to pass an EventParameter to this method anyway, and it might be unexpected if it is treated specially.
2021-03-01 20:50:25 +01:00
rdb
99569fa8f2
CMake: Updates to compile new ParamPyObject class
2021-03-01 20:34:17 +01:00
rdb
402c303dba
event: Make AsyncFuture::set_result() slightly more robust
2021-03-01 19:33:39 +01:00
rdb
8cbe36b352
Merge branch 'release/1.10.x'
2021-03-01 19:33:27 +01:00
rdb
064e0383be
event: Allow AsyncFuture to store arbitrary PyObject result
2021-03-01 19:16:22 +01:00
rdb
bdb2ef1631
pipeline: Fix crash upon exception in custom thread
...
We can't call PyErr_Restore() without a valid thread state, which won't exist in a custom thread if we just called PyGILState_Release(). Not sure how this has ever worked.
2021-03-01 16:19:53 +01:00
rdb
2b3f2bb98c
event: gather() should schedule coroutines with task manager
...
This matches the behaviour of asyncio. It schedules with the current task's manager and chain. If no current manager is found, it prints a warning. (The user can just add the coroutine to a task manager themselves and pass the resulting task into gather() if needed.)
See discussion here:
https://discourse.panda3d.org/t/task-gather-does-not-seem-to-work/27313
2021-03-01 11:22:13 +01:00
rdb
e348d216e5
event: Fix memory leak getting future result in some cases
2021-03-01 11:09:10 +01:00
rdb
b6096c3d40
glgsg: Suppress useless shader linking warnings on macOS
2021-02-26 13:33:25 +01:00
rdb
6a51709332
event: Don't suppress coroutine exceptions in optimized builds
2021-02-26 11:44:50 +01:00
rdb
ada74e3b0c
Merge branch 'release/1.10.x'
2021-02-24 18:10:15 +01:00
rdb
2d9cc2dea0
egl: Further robustify EGL device initialization process
...
Sometimes, the default device fails to initialize, so then we need to fall back to alternatives (eg. GBM)
2021-02-24 17:31:00 +01:00
rdb
7a838e7212
Merge branch 'release/1.10.x'
2021-02-24 12:14:04 +01:00
rdb
2e38ca1042
egl: Fall back to EGL_EXT_platform_device for device selection
...
See #557
2021-02-24 11:41:42 +01:00
rdb
7f20bcd8e0
egl: Fix ability to create multisample FBO
...
Fixes #1089
2021-02-24 10:11:58 +01:00
rdb
778c6ee6be
pgui: Add missing pipeline.h include
2021-02-24 09:46:53 +01:00
Stephen Imhoff
18873ffbf1
Add use of TransformState::make_pos_quat() in some places ( #1116 )
...
Fixes #1116
2021-02-22 20:06:26 +01:00
Stephen Imhoff
a196f1adcc
gobj: Add missing TransformState.make_pos_quat ( #1116 )
...
matches to TransformState.make_pos_hpr
2021-02-22 20:05:58 +01:00
rdb
8944737844
linmath: Support floor division for vector types
...
Also fix __pow__ so that it returns the derived type, not the base type
2021-02-22 20:01:30 +01:00
rdb
5ae08eadf7
Merge branch 'release/1.10.x'
2021-02-22 19:38:49 +01:00
rdb
18cb4a7ccc
vorbis: Disable cross-lapped seeking by default, to reduce clicking
...
Fixes #1108
2021-02-22 10:58:18 +01:00
rdb
f2e488fd6b
pgui: Workaround for text disappearing in multithreaded pipeline
...
The text could appear from a DirectButton or other GUI element if updating eg. the text_fg property.
2021-02-21 11:00:22 +01:00
rdb
5c4909b4ab
pgui: Some code cleanup for PGItem
2021-02-21 10:17:14 +01:00
rdb
a05405c475
pgraph: API reference improvements for NodePath
2021-02-21 10:15:33 +01:00
rdb
fb9b334d58
Merge branch 'release/1.10.x'
2021-02-17 10:57:30 +01:00
rdb
3592404fa8
display: Fix GraphicsWindow::get_pointer() listed as deprecated
...
[skip ci]
2021-02-17 10:56:46 +01:00
rdb
ca577c8b35
Merge branch 'release/1.10.x'
2021-02-15 14:14:10 +01:00
rdb
6374a7f240
express: Fix up Patchfile docstrings
...
[skip ci]
2021-02-15 14:13:24 +01:00
rdb
a704d2c228
display: Fix typos in docstrings
...
[skip ci]
2021-02-15 12:46:29 +01:00
rdb
592f776f76
downloader: Fix missing includes in virtualFileHTTP.cxx
2021-02-15 12:36:29 +01:00
rdb
8afd0e526f
Merge branch 'release/1.10.x'
2021-02-15 11:38:45 +01:00
rdb
70e972a7c0
downloader: Remove duplicated string manipulation methods
...
These already exist in string_utils.h
2021-02-15 11:35:16 +01:00
rdb
84c2a18d00
downloader: Implement VirtualFileHTTP::read_file()
2021-02-15 11:18:13 +01:00
rdb
20bdd32765
downloader: Fix an uninitialized member
2021-02-15 11:13:57 +01:00
rdb
86e0915621
downloader: Add samesite flag to HTTPCookie
2021-02-14 17:47:29 +01:00
rdb
8f1e2f1945
downloader: Support gzip and deflate Content-Encoding values
2021-02-14 17:29:45 +01:00
rdb
62d072cfb4
downloader: Remove unused HTTPChannel::request_path member
2021-02-14 17:28:44 +01:00
rdb
4e27264cac
downloader: Add properties to HTTPCookie
2021-02-11 03:28:43 +01:00
rdb
59ab828098
linmath: Fix typo in Mat4 isub docstring
...
Fixes panda3d/panda3d-docs#96
2021-02-11 03:28:34 +01:00
rdb
28ad032210
collide: Fix CollisionHandlerGravity docstrings
...
[skip ci]
2021-02-08 19:41:46 +01:00
rdb
a64dcd7c5d
event: (BREAKING CHANGE) bare yield in task now means "cont"
...
This is more useful and consistent; you can after all just use "return" to end the task, whereas you can now just use "yield" to continue the next frame rather than "yield Task.cont".
This is a follow-up to f6b39345f7 , which already enabled this behavior when an __await__ (that is awaited from a task) yielded None.
2021-02-07 15:14:04 +01:00
rdb
e8b4b6476c
Merge branch 'release/1.10.x'
2021-02-07 15:01:36 +01:00
rdb
8c8a73a1a7
event: Fix compilation with Python 2.7
2021-02-07 14:49:10 +01:00
rdb
f6b39345f7
event: don't exit task if future __await__ yields None
...
This matches the behavior of asyncio's Task implementation, where this is the equivalent of `yield Task.cont`.
I've kept regular generator tasks unaffected for now, since this might break existing usage.
2021-02-07 12:38:16 +01:00
rdb
3657eb9bce
glgsg: Support texture transforms in default shader
2021-02-06 19:36:50 +01:00
rdb
64f0414f57
Merge branch 'release/1.10.x'
2021-02-06 19:36:39 +01:00
rdb
af60f8200e
glgsg: Gracefully degrade when using 64-bit float in OpenGL ES
2021-02-06 19:35:48 +01:00
rdb
c5568c3d5f
collide: Improve CollisionSphere viz, add outline
2021-02-06 01:25:07 +01:00
rdb
c73c94c862
Merge branch 'release/1.10.x'
2021-02-06 01:23:34 +01:00
rdb
068ceaaf58
event: Clear exception flag after trying asyncio exception import
2021-02-06 01:21:52 +01:00
rdb
3052bcf289
pnmimagetypes: Remove vestigial init_pnm() call
2021-02-06 01:20:44 +01:00
rdb
642f4a4e55
bullet: Implement make_copy() for BulletGhostNode
2021-02-05 23:48:41 +01:00
Stephen Imhoff
cc4701d299
Add ability to persist ghost nodes.
2021-02-05 20:31:10 +00:00
rdb
492cce8a49
event: Compile out threaded code when compiling without HAVE_THREADS
2021-02-03 13:29:28 +01:00
rdb
8c2b3c3192
pgraph: Add missing InstancedNode::CData type handle
2021-02-03 13:27:07 +01:00
rdb
a1e4cf059f
glgsg: Fix attempt to detect glTexStorage1D in OpenGL ES
2021-02-03 12:53:20 +01:00
rdb
60f3ac5163
gobj: Assert instead of crash when printing unresolved GV(A)D
2021-01-30 20:06:32 +01:00
rdb
79dae16a2c
glgsg: Show error for unrecognized p3d_TextureXYZ input
2021-01-30 20:05:36 +01:00
rdb
b1942e8065
collide: Add wires to CollisionBox viz
...
This should make it a lot easier to see the box as opposed to looking at a continuous white shape.
2021-01-30 13:52:03 +01:00
rdb
613441060b
Merge branch 'release/1.10.x'
2021-01-18 23:47:36 +01:00
rdb
29cdd78c4e
mathutil: Fix scaling BoundingSphere to infinite causing assertions
...
This error occurs when a BoundingSphere with a large radius is scaled by an even larger radius such that the radius becomes infinite. In this case, the BoundingSphere should be properly marked as infinite so that it behaves properly (and doesn't cause other assertions down the line).
2021-01-18 19:03:00 +01:00
rdb
3e1d98c105
multify: Respect SOURCE_DATE_EPOCH variable when used from command-line
...
That said, we should probably encourage the use of -T0 (which doesn't write out timestamps to begin with).
2021-01-18 14:16:25 +01:00
rdb
ef4b1d5721
glgsg: Fix compile error with OpenGL ES 1
2021-01-18 00:19:39 +01:00
rdb
842452594d
Merge branch 'release/1.10.x'
2021-01-17 17:28:19 +01:00
rdb
8924b77da4
egldisplay: Backport changes for creating headless EGL contexts
...
Backport of fbc4947455 and 9f1289b492
See #557
2021-01-17 16:46:57 +01:00
rdb
fb6ec557ce
egl: Add missing init_type() for eglGraphicsBuffer/Pixmap
2021-01-17 15:40:19 +01:00
rdb
a5a0809949
gobj: Support integer texture formats in TexturePeeker
2021-01-17 15:27:19 +01:00
rdb
4783c2902d
grutil: Add missing switch case
2021-01-17 15:17:13 +01:00
rdb
b060767bd8
glgsg: slight refactor of get_internal_image_format()
2021-01-17 15:17:09 +01:00
rdb
1fda6e7d51
texture: Add missing integer texture formats
2021-01-17 15:17:03 +01:00
rdb
38d304f2fe
glgsg: Force nearest filtering on isampler/usampler
...
Without this, Intel drivers will sample (0, 0, 0, 1)
2021-01-17 12:10:42 +01:00
rdb
f20d859fe2
pgraph: Fix bug passing non-tuple sequence to shader input
2021-01-16 14:05:43 +01:00
rdb
c5705e0137
Merge branch 'release/1.10.x'
2021-01-12 23:15:36 +01:00
rdb
3a41db130b
gobj: Fix Texture.set_ram_image_as for 3D and multiview textures
...
Fixes #1095
2021-01-12 23:13:02 +01:00
rdb
6e168c2bc4
collide: Implement respect-prev-transform for capsule-into-poly
...
It's not perfect by any means, but it's better than nothing, and should prevent capsules from flying through walls.
2021-01-12 15:55:10 +01:00
rdb
3f08781eac
collide: Improve box-into-polygon test
...
* Use nearly-zero test to check which edges to snap the interior/surface points to, if any, to be less sensitive to fp precision
* The respect-prev-transform test now tests for a sphere that fits inside the box, to prevent a false positive test when the box has been rotated since the last test
* More appropriate surface point for respect-prev-transform test
2021-01-12 14:59:31 +01:00
rdb
1b7f3e4bbd
collide: Fix pusher if interior and surface point don't lie along normal
...
Currently, all tests I'm aware of put the surface point above the interior point (ie. along the normal), but there seems to be no good reason for this requirement, especially since a dot product is more efficient than a length().
2021-01-12 14:51:42 +01:00
rdb
84034f06f5
collide: Respect prev transform in box-into-poly test
...
Only takes changes in position in account, and the test is not entirely perfect, but mostly right
2021-01-11 19:06:24 +01:00
rdb
c52ea9a8df
express: Fix reading zip file with comment at the end
2021-01-04 12:33:11 +01:00
rdb
3f6a8b88c0
egg: Another fix for older bison versions
2021-01-02 21:51:50 +01:00
rdb
0c94f98c84
egg: Keep compatibility with Bison 2.3 (for macOS)
2021-01-02 20:55:59 +01:00
rdb
91380e8718
egg: Make egg parser and lexer reentrant
...
This avoids the need for the global mutex lock and allows two egg files to be read simultaneously.
Error reporting has also been improved by specifically pinpointing the offending token when an error occurs.
2021-01-02 20:11:10 +01:00
rdb
ce235c3e60
Merge branch 'release/1.10.x'
2021-01-02 19:59:33 +01:00
rdb
5d5efb75e8
egg: Fix egg lexer hanging on unterminated quote or C-style comment
2021-01-02 18:43:32 +01:00
rdb
6f5362c3fe
egg: Add missing include
2021-01-02 12:53:24 +01:00
rdb
ea2816f4ea
CMake: Add extension sources for egg and collide directories
2021-01-02 03:11:34 +01:00
rdb
f003e3434e
collide: Use virtual read_datagram/write_datagram on handlers
2021-01-02 02:40:52 +01:00
rdb
e099d9e787
Merge branch 'release/1.10.x'
2021-01-02 02:33:35 +01:00
rdb
a84f1b5595
express: distinguish between null vs empty in CPTA pickle as well
2021-01-02 02:22:06 +01:00
rdb
c81c506df3
express: Fix PointerToArray comparison operator
2021-01-01 17:54:09 +01:00
rdb
b2462c1d8c
express: Support pickling PointerToArray objects
2021-01-01 17:42:30 +01:00
rdb
e755f87130
pgraph: Add pickling for LoaderFileTypeRegistry
...
Useful to test that pickling singletons works
2021-01-01 17:08:55 +01:00
rdb
c77593f3f0
egg: add pickle support to most EggData classes
2021-01-01 17:06:23 +01:00
rdb
f8ce339960
collide: Add pickle support for most collision handlers
...
Also redo CollisionHandlerEvent pickling to use Datagram instead
Related to #1090
2021-01-01 16:56:18 +01:00
rdb
152d317c8c
egg: Fix egg lexer state not being cleaned up after error
2021-01-01 15:52:57 +01:00
rdb
339331c1ad
egg: Add properties to EggAnimPreload
2021-01-01 15:51:23 +01:00
rdb
8852c835fc
collide: Support pickling for CollisionTraverser, HandlerEvent+Queue
...
Fixes #1090
2020-12-31 16:57:34 +01:00
rdb
ac991e4c5e
collide: Fix error with CollisionHandler's again_patterns property
2020-12-31 16:55:22 +01:00
rdb
8d22b80698
display: Fix memory leak in GSG::get_prepared_textures()
2020-12-31 16:43:37 +01:00
rdb
e9c7d345df
display: Move GraphicsPipe::_detected_display_zoom to class member
2020-12-28 16:31:23 +01:00
rdb
b38e9d552a
Merge branch 'release/1.10.x'
2020-12-28 16:26:48 +01:00
rdb
90fb31ac21
ffmpeg: Fix crash cleaning up audio/video context
2020-12-28 16:23:04 +01:00
rdb
21aa31f8c0
gobj: Fix build error on Windows
2020-12-28 12:07:17 +01:00
rdb
2b0a6b995a
display: Add a way to query system DPI scaling
...
See #426
2020-12-26 16:25:51 +01:00
rdb
2156e6deb2
Merge branch 'release/1.10.x'
2020-12-26 14:00:29 +01:00
rdb
55d43a1d57
device: Fix macOS crash when unplugging device in threaded pipeline
...
Fixes #1082
2020-12-26 12:46:45 +01:00
rdb
a3010a43a5
Merge branch 'release/1.10.x'
2020-12-24 15:31:52 +01:00
rdb
35b7ef0dcb
shader: Add additional mode-based texture inputs to GLSL shaders
...
This adds the following inputs:
p3d_Texture[] (as alternative to p3d_Texture0, etc.)
p3d_TextureFF[]
p3d_TextureModulate[]
p3d_TextureAdd[]
p3d_TextureNormal[]
p3d_TextureHeight[]
p3d_TextureSelector[]
p3d_TextureGloss[]
p3d_TextureEmission[]
2020-12-23 18:20:43 +01:00
rdb
05876317cf
Add TextureStage::M_emission mode
...
This is similar to M_glow, except that the emission factor is in the RGB channels.
2020-12-23 17:33:59 +01:00
rdb
8dd3301c43
text: Fix issue with TextNode::set_text() called from non-App stage
...
Because TextEncoder is not pipeline-cycled, text_changed() should propagate text changes up to stage 0.
See #1070 ; this caused the frame rate meter to show 0.0 fps most of the frames.
2020-12-21 16:53:05 +01:00
rdb
3786dc2aea
CMake: Fix detection and use of SSE2 compiler flag on MSVC
...
This is one half of the fix for #1072
2020-12-20 18:35:17 +01:00
rdb
e08282003b
putil: Give SimpleHashMap a type handle to enable memory usage tracking
...
Previously SimpleHashMap were entirely absent from the PStats memory statistics.
2020-12-20 01:02:23 +01:00
rdb
dee8df9427
Merge branch 'release/1.10.x'
2020-12-20 01:02:08 +01:00
rdb
ac021e94d6
putil: Ensure SimpleHashMap::_deleted_chain/_table are always initialized
...
Good to be on the safe side.
2020-12-20 00:59:55 +01:00
rdb
f7ab42da56
putil: Fix memory leak in SimpleHashMap
...
Fixes #1077
2020-12-20 00:23:04 +01:00
rdb
b5c857c73f
pgraphnodes: Backport ShaderGenerator stub to 1.10.x
...
Needed if interrogate is being run with the __aarch64__ definition in a multi-arch build
2020-12-19 23:50:07 +01:00
rdb
10bb4a33d3
ShaderGenerator: remove unnecessary member, define all stub methods
2020-12-19 11:15:00 +01:00
rdb
f65fd44c08
pgraphnodes: Add missing ShaderGenerator stub symbols
2020-12-19 02:56:41 +01:00
rdb
7ae72cd880
pgraphnodes: Fix ShaderGenerator includes
2020-12-19 02:00:59 +01:00
rdb
1c974092e4
express: Fix compile error with certain macOS SDKs
2020-12-19 01:00:07 +01:00
rdb
abe3c2bf0b
CMake: Mark all system macOS frameworks as advanced variables
...
It should be extremely unusual to want to change these, and they are just cluttering up the CMake GUI.
2020-12-19 00:33:22 +01:00
rdb
113dd6a357
CMake: Don't try to build FMOD Ex audio module for arm64
2020-12-19 00:26:22 +01:00
rdb
617a759fd2
pgraphnodes: Add exposed methods to ShaderGenerator stub
...
Since HAVE_CG is now dependent on __aarch64__, it otherwise relies on interrogate having been run with the same architecture flags.
2020-12-19 00:26:13 +01:00
rdb
a5ae292c3e
Merge branch 'release/1.10.x'
2020-12-18 12:56:31 +01:00
rdb
6f35cb0235
device: Silently ignore invalid evdev keycodes generated by some drivers
...
Fixes #1066
2020-12-15 12:33:22 +01:00
rdb
fa8c8e71b5
gobj: Assert instead of crash if primitive references out-of-bounds vert
2020-12-14 16:54:20 +01:00
rdb
79714392cb
gobj: Enable slightly more efficient GeomVertexReader/Writer ctor
...
This allows moving an existing PT(GeomVertexData) into the object, preventing an extra refcount increase.
2020-12-14 11:16:25 +01:00
rdb
902ada10b8
gobj: Slight optimization for GeomTristrips::append_unused_vertices()
2020-12-14 11:11:46 +01:00
rdb
454179a276
collide: Fix typo in STDFLOAT_DOUBLE case
2020-12-14 11:00:49 +01:00
rdb
a11e21e4f4
audio: Fix sound resuming after reactivation if stop() was called while inactive
...
Backport of fix for #559
2020-12-12 19:50:48 +01:00
rdb
e5eb5f8ed2
audio: Fix stop() not working for looped sound while sound is inactive
...
Fixes #559
Also fixes #1031 for FMOD
2020-12-12 18:45:45 +01:00
rdb
9f09857397
collide: Error checking for CollisionPolygon::setup/verify_points()
2020-12-12 17:28:41 +01:00
rdb
eaf509a226
pgraph: Make PandaNode::r_copy_subgraph no longer virtual (unused)
2020-12-12 17:28:21 +01:00
rdb
a1b2d5b8dc
Make use of new function call methods in Python 3.9
2020-12-12 17:28:21 +01:00
rdb
ab5730831c
audio: Add some properties to AudioSound
2020-12-12 17:28:21 +01:00
rdb
2b29c757d9
pgraph: Optimization for GeomNode::add_for_draw()
2020-12-12 17:28:21 +01:00
rdb
251d73a47b
ShaderGenerator: very slight optimization setting ShaderAttrib flags
2020-12-12 14:15:27 +01:00
rdb
ac4faf3d74
text: Make TextNode pipeline-cycled
...
Fixes #1070
Note that text property changes are not pipeline-cycled at the moment.
2020-12-12 14:05:48 +01:00
rdb
54a4a6abfc
Merge branch 'release/1.10.x'
2020-12-12 14:02:04 +01:00
rdb
761c54f63d
pgui: Workaround for DirectEntry flickering issues w/ pipelining
...
See #1070 . This is a temporary solution (one which isn't complete- it doesn't properly handle state changes).
2020-12-12 13:57:49 +01:00
Daniel
4f63ef635d
panda: Remove PyEval_InitThreads calls when compiling against Python 3.9+
...
Cherry-pick from #1053
2020-12-12 00:16:58 +01:00
rdb
c8a35641c1
pgraphnodes: Remove unused variable
2020-12-10 17:37:05 +01:00
rdb
ed397b3ab8
Merge branch 'release/1.10.x'
2020-12-09 17:59:37 +01:00
rdb
bf59e880c6
bullet: Fix compilation error with Bullet 2.90+
2020-12-09 16:25:29 +01:00
rdb
8e2c0dff4a
pgraph: Hack fix for copying model with LightAttrib on root
...
When a LightAttrib is set on the root of a model and the light is contained within that model, creating a copy (like the one Loader makes automatically) causes the LightAttrib to still point to the original light, not to the newly copied light.
This works around it only for the case when the LightAttrib is set on the root, and only for the case of NodePath::copy_to() (it turns out there are edge cases when doing it in PandaNode::copy_subgraph() that would be hard to explain).
See Moguri/blend2bam#44
2020-12-09 15:51:36 +01:00
rdb
9525ddbfef
pgraph: LightAttrib::get_on_light(n) should call check_sorted()
2020-12-09 15:48:10 +01:00
rdb
615502aef6
pgraphnodes: Support hardware instancing for LODNode
...
LODNode will now correctly calculate LOD for individual instances.
It turns out implementing it for FadeLODNode is hard (wrt. tracking state for individual instances) so I have not bothered with supporting it - FadeLODNode instead calculates a single switch level for all instances based on the centroid of the visible instances.
2020-11-26 16:47:35 +01:00
rdb
e13756f43e
pgraph: Support hardware instancing in BillboardEffect and CompassEffect
2020-11-26 16:47:11 +01:00
Daniel
54cb519dc9
panda: Remove PyEval_InitThreads calls when compiling against Python 3.9+
...
Closes #1053
2020-11-23 10:56:09 +01:00
rdb
01b2f1f759
gobj: Fix typo in docstring
...
[skip ci]
2020-11-23 10:54:03 +01:00
rdb
92e2c24958
Experimental InstancedNode class for hardware instancing
2020-11-22 22:01:13 +01:00
Daniel
ac6a1a7874
collide: Expose CollisionPolygon's setup_points and verify_points to Python
...
Closes #1035
2020-11-22 22:01:07 +01:00
rdb
3d5f0b7fe1
gobj: Add methods for adding/removing GeomVertexData arrays
2020-11-22 15:37:38 +01:00
rdb
51a3a2b4a1
express: Fix VirtualFileMountZip not having init_type() called
2020-11-22 15:22:47 +01:00
rdb
8486d286b7
Merge branch 'release/1.10.x'
2020-11-22 15:19:51 +01:00
rdb
61a089ad59
ShaderGenerator: don't output unused attr_ambient input variable
2020-11-22 14:23:46 +01:00
rdb
b12fcec099
glgsg: Fix handling of sized rgba formats in OpenGL ES
2020-11-22 14:21:34 +01:00
rdb
d1e8554fde
glgsg: Fix error message if vtx_normal is declred as float4 in Cg
2020-11-21 14:19:52 +01:00
rdb
d62146a317
Merge branch 'release/1.10.x'
2020-11-17 23:56:00 +01:00
rdb
93900a203e
putil: Backport part of 9d8c523dfa
...
Fixes #886
2020-11-17 23:36:06 +01:00
rdb
3abd157315
gobj: Fix a bad assertion comparison
2020-11-17 21:05:08 +01:00
rdb
3a2048e44a
glgsg: Fix skinning shader being unable to render unskinned models
...
Panda was adding a column with weights (0, 0, 0, 0), but these weights don't add up to 1 so no useful identity matrix can be produced. Instead it's better to fall back to the OpenGL default, (0, 0, 0, 1).
I'm also defaulting the transform_index values to (0, 1, 2, 3) to support non-indexed skinning (although that's pretty esoteric, given that that only supports 4 transforms...)
2020-11-17 21:01:56 +01:00
rdb
c53f461f3f
gobj: Fix typo in MatrixLens API documentation
...
Fixes #1042
2020-11-17 11:59:36 +01:00
rdb
8c3fd5b406
collide: Release GIL while during CollisionTraverser traversal
...
This is necessary to prevent deadlocking on the GIL if some Python code is trying to write some geometry while the CollisionTraverser is trying to read it.
Fixes #1033
2020-11-02 12:18:22 +01:00
rdb
e83657f70f
pstatclient: Prevent crash when using uninitialized PStatCollector
2020-11-02 11:02:49 +01:00
Brian Lach
57c9fbd86e
glgsg: fix identical states never short-circuiting set_state_and_transform
...
Closes #1012
2020-11-02 11:02:49 +01:00
Brian Lach
eb367430f7
openal: Fix paused sounds not resuming from where they were paused ( #1031 )
2020-10-08 17:17:36 +02:00
rdb
c788912070
Merge branch 'release/1.10.x'
2020-10-02 12:20:58 +02:00
rdb
f77813836d
express: Fix compile error on Windows
2020-10-02 00:23:08 +02:00
Brian Lach
62225e441d
x11display: Remove incorrect INLINE marker on these methods
...
Closes #1026
2020-10-02 00:07:22 +02:00
rdb
442e855a61
express: Fix a compilation issue in certain configurations
2020-10-02 00:06:52 +02:00
rdb
6d228dfd2e
express: Add ZipArchive class, support mounting zips to VFS
2020-10-01 23:58:27 +02:00
rdb
4b7e32e9b0
egldisplay: Fix bad use of X11 None symbol instead of nullptr
2020-09-16 23:39:13 +02:00
rdb
921cbc6bae
Merge commit 'e0d34131822a8852ff72dc9c5597f4dc6900719a'
2020-09-13 16:17:06 +02:00
rdb
c7f75fc906
egg2pg: Add egg-force-srgb-textures environment variable
...
This will cause all textures in .egg files to be loaded with an sRGB format setting (except with an envtype that generally assumes a linear texture).
Fixes #1006
2020-09-13 15:17:02 +02:00
rdb
66ac3be604
Merge branch 'release/1.10.x' into master
2020-09-12 23:23:58 +02:00
rdb
a968caf1d2
windisplay: Fix parented window receiving WS_POPUP style
...
Fixes #915
2020-09-12 15:38:50 +02:00
rdb
d997be50ff
glgsg: fix state tracking bug passing view parameters to shader
...
These parameters are already taken care of by set_state_and_transform().
Also comment out a few lines of code that would prevent the latter from being called for transform changes, but which never triggered anyway.
2020-09-09 18:06:42 +02:00
rdb
3daf1ae1b1
general: Assorted API reference fixes
2020-09-09 18:03:49 +02:00
rdb
ad0e634292
egg: Add (discouraged) way to specify sRGB texture format ( #924 )
...
This should NOT be used by exporters, but is provided only for the sake of round-trippability of .bam files.
2020-09-06 14:44:44 +02:00
rdb
005d187ac4
egldisplay: Support creating a window with sRGB framebuffer
2020-09-06 10:14:28 +02:00
rdb
24fb2a2c88
egldisplay: Fix invalid software/hardware detection on Mesa
2020-09-06 09:21:21 +02:00
rdb
40842ef217
gles2gsg: fix sRGB texture support
2020-09-06 09:20:34 +02:00
rdb
cca84131df
gles2gsg: squelch warning about missing #version line in shader
2020-09-06 09:19:51 +02:00
LD
28f49ffd0b
cocoadisplay: Use [event charactersIgnoringModifiers] when UCKeyTranslate() can not translate the input key
2020-09-01 20:29:53 +02:00
rdb
707ea089cb
Merge remote-tracking branch 'origin/release/1.10.x'
2020-09-01 11:09:29 +02:00
rdb
1cc82f47b6
fmod: Fallback to opening file via callbacks if direct doesn't work
...
Fixes #1002
2020-09-01 10:41:34 +02:00
Mitchell Stokes
d547225a55
Move speedtree code to contrib
...
SpeedTree support in Panda is unmaintained, so move it to contrib to better
reflect it's current status.
Closes #990
2020-09-01 08:57:57 +02:00
Derzsi Dániel
7f426ea64e
putil: Turn UniqueIdAllocator's free into an atomic operation ( #999 )
2020-08-29 15:17:20 +02:00
Daniel
085795db83
putil: Make UniqueIdAllocator safe for multithreaded usage
...
Closes #995
2020-08-27 14:35:47 +02:00
Daniel
95d1ac2f8b
tests: Add proper tests for UniqueIdAllocator
2020-08-27 14:35:25 +02:00
rdb
9deb569441
pgui: Work around Windows bug with tab character in PGEntry
...
Fixes #994
2020-08-21 14:29:27 +02:00
rdb
4484aca8e1
Revert "pgui: Ignore PGEntry tab keypress"
...
This reverts commit 1f05d37b20 .
See #994
2020-08-21 14:06:22 +02:00
rdb
7b9b65693a
mathutil: Gracefully deal with "tails" in Triangulator
...
Fixes #985
2020-08-18 17:58:28 +02:00
rdb
5ef1db3fd3
Revert "mathutil: error instead of infinite loop if triangulation failed"
...
This reverts commit 9c4cb28805 .
The "fix" wasn't very satisfying, I'm going to try another approach.
2020-08-18 17:25:58 +02:00
rdb
43507dd118
mathutil: Fix Triangulator bug cleaning up hole indices
2020-08-18 16:38:12 +02:00
rdb
b655aa86c5
Merge branch 'release/1.10.x'
2020-08-17 13:05:51 +02:00
rdb
73b5316c6c
gobj: add margin to float comparison in lens.project()
...
Fixes unit tests in double-precision build.
Cherry-picked from fa53e013cb
2020-08-17 12:42:34 +02:00
Mitchell Stokes
dd77bd4cdf
shadergen: Make use of material alpha if present ( #925 )
...
The material alpha overrides alpha values from flat color or vertex colors. This follows what the fixed-function pipeline does.
Fixes #912
2020-08-17 12:27:03 +02:00
rdb
11fbdf4e6f
nativenet: Assorted code clean-up
2020-08-17 10:31:22 +02:00
FReeshabh
56ed86334b
general: Update header guard names to fit convention
...
Closes #899
2020-08-17 10:09:13 +02:00
Daniel
1f05d37b20
pgui: Ignore PGEntry tab keypress
...
Closes #885
2020-08-17 10:02:06 +02:00
rdb
9c4cb28805
mathutil: error instead of infinite loop if triangulation failed
...
Fixes #985
2020-08-11 09:38:41 +02:00
rdb
dde0e5255d
nativenet: remove unused and invalid HP_SOCK implementation
...
Closes #984
2020-08-10 10:49:29 +02:00
rdb
35d6f3daa3
Merge branch 'release/1.10.x'
2020-07-25 15:55:05 +02:00
rdb
72b96f1afa
putil: define pbitops in terms of fundamental types
...
This ensures there's always an overload matching a particular definition of size_t / uint64_t, etc.
2020-07-25 09:53:15 -04:00
rdb
dcc08ac572
Merge branch 'release/1.10.x'
2020-07-25 14:58:35 +02:00
Tohka
c4af56620b
gobj: Support registering texture pool filters from Python code
...
Closes #954
2020-07-25 14:54:32 +02:00
Mitchell Stokes
2893d8cef8
device: Fix erroneous dpad_*-up events when emulating a dpad on Linux
...
The first time axis are processed while a dpad axis is engaged will
result in the opposite dpad "button" getting set to a state of S_up from
S_unknown, which results in an '-up' event getting fired. Instead,
assume the emulated dpad buttons start in a state of S_up.
This fix is for the Joystick API and for the evdev API, but only the
evdev changes were tested.
Closes #973
2020-07-25 14:07:33 +02:00
rdb
3fe1d286d0
collide: Add docstring for CollisionTraverser::traverse()
2020-07-25 12:50:09 +02:00
rdb
9d91274739
gobj: Don't use Texture::up_to_power_2 for memory alignment
...
That method uses plain int, and will therefore fail for larger allocations.
2020-07-25 10:43:21 +02:00
Donny Lawrence
5d6ff0ecc8
cocoadisplay: Fix handling of shift modifier
...
Closes #967
Fixes #959
2020-07-25 10:27:18 +02:00
rdb
e787929c85
Merge branch 'release/1.10.x'
2020-06-29 14:50:59 +02:00
rdb
40962e1eb5
gsg: Don't error for sampler/light type mismatch for non-casting lights
...
Closes #942
2020-06-29 12:17:36 +02:00
rdb
d1ab940e93
pgraph: Fix texture replacement creating unique TextureAttrib
...
This needs a more thorough fix (probably on master), but the implicit sort is incrementing every time, and it is being included in the hash/compare, so every time the same texture is replaced on the same TextureAttrib, it will be a unique TextureAttrib, causing garbage to accumulate and the state system to be generally less effective.
2020-06-29 11:30:07 +02:00
rdb
04dd4fe354
pgui: Add PGItem Python properties
2020-06-22 22:50:15 +02:00
Fireclaw
0f2cf6d14b
Add maximized property to WindowProperties, plus implementation ( #809 )
...
Closes #809
Co-authored-by: rdb <git@rdb.name>
2020-06-20 23:00:52 +02:00
rdb
d01c53c2d8
Merge branch 'release/1.10.x'
2020-06-14 13:02:25 +02:00
rdb
a9b158192f
putil: fix crash in BitArray::has_any_of()
2020-06-14 12:55:52 +02:00
rdb
446c01c796
nativenet: change some error messages to debug messages
2020-06-14 12:52:01 +02:00
Nathan S
ffef5968fe
docs: some grammar fixes for meshDrawer2D
...
Fixes #941
2020-06-02 20:36:56 +02:00
rdb
55951c3025
pgraph: fix has_tags() after clearing Python tags
...
Fixes #936
2020-06-02 20:31:18 +02:00
rdb
9f1289b492
egldisplay: Support headless OpenGL via EGL when compiled without X11
...
See #557
2020-05-20 20:27:40 +02:00
rdb
fbc4947455
egldisplay: Support creating headless GLES contexts
...
See #557
2020-05-19 22:34:05 +02:00
rdb
f47b92347c
glgsg: Fix framebuffer_copy_to_ram for OpenGL ES using BGRA format
...
Supporting BGRA doesn't necessarily mean that it supports using BGRA in glReadPixels, for OpenGL ES. We need to check a separate extension.
2020-05-19 21:57:15 +02:00
rdb
6b19be495a
display: fix long-standing typo in error message
...
How was this never caught?!
2020-05-19 20:24:45 +02:00
rdb
d64944c108
pgraph: minor optimizations to GeomNode::add_for_draw()
2020-05-11 09:38:17 +02:00
rdb
26ba2b15cd
collide: unexpose verify_points overload taking LPoint3 array
...
Similar as in #908
2020-05-11 09:09:00 +02:00
rdb
dd9ed1109a
downloader: Fix dead link in API documentation
2020-05-11 09:08:11 +02:00
rdb
7d94f601db
shader: Make Cg load calls fail if compiling without Cg toolkit
2020-05-05 16:54:50 +02:00
rdb
9ad4e4586c
collide: Use correct intersection point for sphere into poly
...
Previously, the reported surface and intersection points could be outside the polygon if the sphere was colliding with the edge.
Fixes #907
2020-05-05 16:52:21 +02:00
rdb
3598222977
Merge branch 'release/1.10.x'
2020-05-05 16:47:38 +02:00
rdb
ed73394275
collide: fix erroneous collision if sphere is under edge of polygon
...
Reproducible by the code in #907 , occurs if the sphere is close to the edge, but its center is off and under the polygon.
2020-05-05 16:33:20 +02:00
rdb
2ed4516cb2
collide: Unexpose CollisionPolygon constructor taking point array
...
This could never work in Python, and does indeed cause a crash, so I don't consider this compat-breaking.
Fixes #908
2020-05-05 14:51:31 +02:00
rdb
e4573ef0fe
cleanup: Remove more unnecessary nullptr checks before delete
...
Follow-up to #934
2020-05-05 14:46:30 +02:00
rdb
29f552a6ef
task: Use TimeoutError from asyncio.exceptions on Python 3.8+
...
Fixes unit test failures
2020-05-05 14:35:43 +02:00
rdb
bfbbcad990
task: Support calling cancel() on currently awaiting futures
...
Fixes #911
2020-05-05 13:21:49 +02:00
rdb
b5d0e9eafc
task: Fix memory leak when removing a task awaiting non-Panda future
2020-05-05 13:19:26 +02:00
rdb
1ff11c1e16
cleanup: Removal of unnecessary null checks around `delete`
...
Fixes #934
2020-05-05 10:41:16 +02:00
rdb
5030ad6b13
nativenet: reformat time_accumulator.h
2020-05-05 10:39:43 +02:00
rdb
3000aa2369
windisplay: Support relative mouse mode (using raw input)
...
Fixes #928
2020-05-02 11:10:37 +02:00
rdb
734bb8552c
Merge branch 'release/1.10.x'
2020-05-02 10:51:17 +02:00
rdb
4b00f9e660
windisplay: Fix M_confined mode confining cursor to incorrect region
...
It should be confined to the client rect, not the window rect.
Fixes #929
2020-05-02 10:47:37 +02:00
rdb
3f0ff827f3
wgldisplay: Support floating-point window framebuffers on Windows
...
These are linearized scRGB, and necessary to make Panda work on HDR monitors.
2020-05-01 20:33:52 +02:00
rdb
6ad9eeb5a1
CMake: generate panda3d.dist-info directory
...
This makes pip recognise that Panda3D has been installed and setuptools recognise the build_apps and bdist_apps commands.
2020-04-30 21:37:35 +02:00
rdb
d799a09002
cleanup: Remove support for EOL versions of Python
...
Fixes #905
2020-04-26 20:07:56 +02:00
rdb
e2177ecbdb
Merge branch 'release/1.10.x'
2020-04-26 00:16:25 +02:00
rdb
c59a039fa8
pgraph: fix RenderState/TransformState count in PStats exploding
...
This was a regression in 1.10.6 that caused PStats to misreport the amount of RenderState/TransformStates in the application.
2020-04-25 23:39:03 +02:00
Ashwini
80ab6a28c4
pnmimage: Added offset to add_sub_image and mult_sub_image
...
Closes #903
2020-04-25 22:56:40 +02:00
Joel Stienlet
f2e67169bc
corrects bug: wrong case entered in MultiplexStreamBuf::Output::write_string() in panda/src/downloader/multiplexStreamBuf.cxx
...
Closes #902
2020-04-25 22:19:34 +02:00