mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Set render target textures to clamp to border by default
This commit is contained in:
parent
d995bfbdfb
commit
a120414d32
@ -94,6 +94,7 @@ struct gl_render_target_traits
|
|||||||
.type(format.type)
|
.type(format.type)
|
||||||
.format(format.format)
|
.format(format.format)
|
||||||
.swizzle(format.swizzle.r, format.swizzle.g, format.swizzle.b, format.swizzle.a)
|
.swizzle(format.swizzle.r, format.swizzle.g, format.swizzle.b, format.swizzle.a)
|
||||||
|
.wrap(gl::texture::wrap::clamp_to_border, gl::texture::wrap::clamp_to_border, gl::texture::wrap::clamp_to_border)
|
||||||
.apply();
|
.apply();
|
||||||
|
|
||||||
__glcheck result->pixel_pack_settings().swap_bytes(format.swap_bytes).aligment(1);
|
__glcheck result->pixel_pack_settings().swap_bytes(format.swap_bytes).aligment(1);
|
||||||
@ -120,6 +121,7 @@ struct gl_render_target_traits
|
|||||||
.type(format.type)
|
.type(format.type)
|
||||||
.format(format.format)
|
.format(format.format)
|
||||||
.internal_format(format.internal_format)
|
.internal_format(format.internal_format)
|
||||||
|
.wrap(gl::texture::wrap::clamp_to_border, gl::texture::wrap::clamp_to_border, gl::texture::wrap::clamp_to_border)
|
||||||
.apply();
|
.apply();
|
||||||
|
|
||||||
__glcheck result->pixel_pack_settings().aligment(1);
|
__glcheck result->pixel_pack_settings().aligment(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user