View Issue Details

IDProjectCategoryView StatusLast Update
0005094DarkRadiantRendererpublic08.11.2020 18:36
Reportergreebo Assigned Togreebo  
PrioritynormalSeveritynormalReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.7.0 
Target Version2.7.0Fixed in Version2.7.0 
Summary0005094: Choose Skin dialog will crash in 2.7.0pre2
DescriptionIt appears there is a GL context problem in the DR 2.7.0 pre-release versions, causing the choose skin preview widget to fail in debug builds.
Steps To ReproduceUse the map below and open it in DR.
Select one bed and select the skin spawnarg in the Entity Inspector
Hit "Choose Skin" which will crash due to the glGenLists() call failing to create a display list

Version 2
// entity 0
{
"classname" "func_static"
"name" "func_static_1"
"origin" "61 34 41"
"rotation" "1 0 0 0 1 0 0 0 1"
"model" "models/darkmod/furniture/beds/builder_bed01.lwo"
"skin" "beds/builder_coarse"
}
// entity 1
{
"classname" "func_static"
"name" "func_static_2"
"origin" "220 29 41"
"rotation" "1 0 0 0 1 0 0 0 1"
"model" "models/darkmod/furniture/beds/builder_bed01.lwo"
"skin" "beds/builder_coarse"
}
TagsNo tags attached.

Relationships

related to 0005114 closedgreebo 2.7pre3: Model selection: materials/verts/polys display always refers to previously selected model 

Activities

There are no notes attached to this issue.

Related Changesets

DarkRadiant: master 09a069d2

02.01.2020 18:10

greebo


Details Diff
Fix 0005094 by preventing the ModelPreview::setModel/setSkin methods immediately propagating the setting to the scene, triggering GL calls in the background when potentially no GL context is present yet. With this change the model/skin changes are applied in the onPreRender() method which is always invoked with a current context. Affected Issues
0005094
mod - libs/wxutil/preview/ModelPreview.cpp Diff File
mod - libs/wxutil/preview/ModelPreview.h Diff File
mod - libs/wxutil/preview/RenderPreview.cpp Diff File

Issue History

Date Modified Username Field Change
01.01.2020 05:06 greebo New Issue
01.01.2020 05:07 greebo Status new => confirmed
02.01.2020 17:10 greebo Assigned To => greebo
02.01.2020 17:10 greebo Status confirmed => assigned
02.01.2020 17:10 greebo Target Version => 2.7.0
02.01.2020 18:01 greebo Status assigned => resolved
02.01.2020 18:01 greebo Resolution open => fixed
02.01.2020 18:01 greebo Fixed in Version => 2.7.0
07.01.2020 18:56 greebo Relationship added related to 0005114
09.01.2020 19:25 greebo Changeset attached => DarkRadiant master 09a069d2
08.11.2020 18:36 greebo Status resolved => closed