You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ue on Mac" (PixarAnimationStudios#364)
### Description of Change(s)
The intention of the submit ab0520a was to make the ComputeViewport the same in OpenGL and Metal.
Originally, in Metal, ComputeViewport will just output the dataWIndow as the viewport. And in HgiMetalGraphicsCmds::SetViewport, it uses "viewportHeight - viewportMinY" as the final minY. So we can know:
finalMinY = viewportHeight - viewportMinY = windowHeight - windowMinY.
In the submit of ab0520a, it uses the OpenGL calculation in ComputeViewport for both OpenGL and Metal. So ComputeViewport will use "frameBufferHeight - windowMinY - windowHeight" as the minY of viewport. And in HgiMetalGraphicsCmds::SetViewport, it uses "viewportHeight + viewportMin" as the final minY. So now :
finalMinY = viewportHeight + viewportMinY = windowHeight + frameBufferHeight - windwMinY - windowHeight = framebufferHeight - windowMinY.
Indeed after this change, the finalMinY is different from the original finalMinY. If framebufferHeight is the same as the windowHeight, there is no problem. If they are different, the rendering result will be indirect.
So here we just revert the change.
### Fixes Issue(s)
Description of Issue
Calling CreateNew with a non-existing path causes a stack overflow, at least on Windows.
Steps to Reproduce
In a python terminal:
from pxr import Usd
Usd.Stage.CreateNew(r"C:\This\Doesnt\Exist.usd")
This will cause Python to segfault. Running the same function call in C# results in an exception indicating that there was a stack overflow.
System Information (OS, Hardware)
Windows
Package Versions
USD v0.8.2
Build Flags
python build_scripts\build_usd.py
--build-monolithic
--no-tests
--no-docs
--no-ptex
--no-embree
--alembic
--no-hdf5
build_monolithic_py
The text was updated successfully, but these errors were encountered: