mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0024148: Test case bugs/vis/bug24131_markers works wrong on software MS OpenGL
Add pre-rendered images for custom markers. OpenGl_Window - drop overcomplicated find_pixel_format() function OpenGl_Caps - add option to force software OpenGL imlementation (MS or Apple) Remove TODO from test case Add grayscale custom marker to the test Correct color bitness in attributes list
This commit is contained in:
@@ -647,7 +647,7 @@ TCollection_AsciiString ViewerTest::ViewerInit (const Standard_Integer thePxLeft
|
||||
#if defined(_WIN32) || defined(__WIN32__)
|
||||
VT_GetWindow() = new WNT_Window (aTitle.ToCString(),
|
||||
Handle(WNT_WClass)::DownCast (WClass()),
|
||||
WS_OVERLAPPEDWINDOW,
|
||||
Draw_VirtualWindows ? WS_POPUPWINDOW : WS_OVERLAPPEDWINDOW,
|
||||
aPxLeft, aPxTop,
|
||||
aPxWidth, aPxHeight,
|
||||
Quantity_NOC_BLACK);
|
||||
@@ -3895,6 +3895,7 @@ static int VCaps (Draw_Interpretor& theDI,
|
||||
{
|
||||
theDI << "VBO: " << (aCaps->vboDisable ? "0" : "1") << "\n";
|
||||
theDI << "Sprites: " << (aCaps->pntSpritesDisable ? "0" : "1") << "\n";
|
||||
theDI << "SoftMode:" << (aCaps->contextNoAccel ? "1" : "0") << "\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -3909,6 +3910,10 @@ static int VCaps (Draw_Interpretor& theDI,
|
||||
{
|
||||
aCaps->pntSpritesDisable = anArg.Token ("=", 2).IntegerValue() == 0;
|
||||
}
|
||||
else if (anArg.Search ("soft=") > -1)
|
||||
{
|
||||
aCaps->contextNoAccel = anArg.Token ("=", 2).IntegerValue() != 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << "Unknown argument: " << anArg << "\n";
|
||||
@@ -5402,7 +5407,7 @@ void ViewerTest::ViewerCommands(Draw_Interpretor& theCommands)
|
||||
"vvbo [{0|1}] : turn VBO usage On/Off; affects only newly displayed objects",
|
||||
__FILE__, VVbo, group);
|
||||
theCommands.Add ("vcaps",
|
||||
"vcaps [vbo={0|1}] [sprites={0|1}] : modify particular graphic driver options",
|
||||
"vcaps [vbo={0|1}] [sprites={0|1}] [soft={0|1}] : modify particular graphic driver options",
|
||||
__FILE__, VCaps, group);
|
||||
theCommands.Add ("vmemgpu",
|
||||
"vmemgpu [f]: print system-dependent GPU memory information if available;"
|
||||
|
Reference in New Issue
Block a user