dbg
This commit is contained in:
1 parent
24348ba6ad
commit
0da8bfcfa2
1 file changed
+5
@@ -33,6 +33,8 @@ final class RenderGLView: NSOpenGLView {
|
||||
var swapInterval: Int32 = 1
|
||||
context.setValues(&swapInterval, for: .swapInterval)
|
||||
|
||||
otherPrintStderr("RenderGLView prepareOpenGL bounds \(bounds) backing \(convertToBacking(bounds))")
|
||||
|
||||
sr_init(pixelWidth, pixelHeight,
|
||||
RENDER_SHADER_MAIN_VS, RENDER_SHADER_MAIN_FS,
|
||||
RENDER_SHADER_SHADOW_VS, RENDER_SHADER_SHADOW_FS,
|
||||
@@ -80,11 +82,13 @@ final class RenderGLView: NSOpenGLView {
|
||||
|
||||
override func reshape() {
|
||||
super.reshape()
|
||||
otherPrintStderr("RenderGLView reshape bounds \(bounds) backing \(convertToBacking(bounds))")
|
||||
needsDisplay = true
|
||||
}
|
||||
|
||||
override func viewDidChangeBackingProperties() {
|
||||
super.viewDidChangeBackingProperties()
|
||||
otherPrintStderr("RenderGLView viewDidChangeBackingProperties bounds \(bounds) backing \(convertToBacking(bounds))")
|
||||
needsDisplay = true
|
||||
}
|
||||
|
||||
@@ -95,6 +99,7 @@ final class RenderGLView: NSOpenGLView {
|
||||
|
||||
// Update pixel size
|
||||
let backing = convertToBacking(bounds)
|
||||
otherPrintStderr("RenderGLView draw bounds \(bounds) backing \(backing)")
|
||||
pixelWidth = Int32(max(1, backing.width))
|
||||
pixelHeight = Int32(max(1, backing.height))
|
||||
|
||||
|
||||
Reference in new issue
Block a user