I can’t reproduce as it’s just a player who reported this issue. I’m trying to contact him to get more details. Extensions - nothing special, defos, steamworks and
Render script is pretty basic (it happens immediately at start, so it just renders menu), but I’ creating 4 render targets at init. But they are used later.
local function create_render_targets(self)
if self.characters_target_1 then
render.delete_render_target(self.characters_target_1)
end
if self.characters_target_2 then
render.delete_render_target(self.characters_target_2)
end
if self.outline_target_1 then
render.delete_render_target(self.outline_target_1)
end
if self.outline_target_2 then
render.delete_render_target(self.outline_target_2)
end
if self.npot then
self.tex_width = SCREEN_WIDTH
self.tex_height = SCREEN_HEIGHT
else
self.tex_width = next_pot(SCREEN_WIDTH)
self.tex_height = next_pot(SCREEN_HEIGHT)
end
if (self.tex_width > self.max_texture_size) or (self.tex_height > self.max_texture_size) then
return
end
local color_params =
{
format = render.FORMAT_RGBA,
width = self.tex_width,
height = self.tex_height,
min_filter = render.FILTER_NEAREST,
mag_filter = render.FILTER_NEAREST,
u_wrap = render.WRAP_CLAMP_TO_EDGE,
v_wrap = render.WRAP_CLAMP_TO_EDGE
}
local color_params_blur =
{
format = render.FORMAT_RGBA,
width = self.tex_width / 2,
height = self.tex_height / 2,
min_filter = render.FILTER_LINEAR,
mag_filter = render.FILTER_LINEAR,
u_wrap = render.WRAP_CLAMP_TO_EDGE,
v_wrap = render.WRAP_CLAMP_TO_EDGE
}
--TODO pcall
self.characters_target_1 = render.render_target("chars", {[render.BUFFER_COLOR_BIT] = color_params })
self.characters_target_2 = render.render_target("chars2", {[render.BUFFER_COLOR_BIT] = color_params })
self.outline_target_1 = render.render_target("outline1", {[render.BUFFER_COLOR_BIT] = color_params_blur })
self.outline_target_2 = render.render_target("outline2", {[render.BUFFER_COLOR_BIT] = color_params_blur })
end