mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
renderer/opengl: resize the screen texture
This commit is contained in:
@ -148,6 +148,19 @@ pub const State = struct {
|
||||
1,
|
||||
};
|
||||
try self.syncUniforms();
|
||||
|
||||
// Update our texture
|
||||
const texbind = try self.fb_texture.bind(.@"2D");
|
||||
try texbind.image2D(
|
||||
0,
|
||||
.rgb,
|
||||
@intCast(size.width),
|
||||
@intCast(size.height),
|
||||
0,
|
||||
.rgb,
|
||||
.UnsignedByte,
|
||||
null,
|
||||
);
|
||||
}
|
||||
|
||||
/// Call this prior to drawing a frame to update the time
|
||||
|
@ -13,7 +13,7 @@ layout(binding = 0) uniform Globals {
|
||||
uniform float iSampleRate;
|
||||
};
|
||||
|
||||
layout(binding = 1) uniform sampler2D iChannel0;
|
||||
layout(binding = 0) uniform sampler2D iChannel0;
|
||||
|
||||
// These are unused currently by Ghostty:
|
||||
// layout(binding = 1) uniform sampler2D iChannel1;
|
||||
|
Reference in New Issue
Block a user