|
@@ -231,6 +231,9 @@ LoadTexture(Rocket::Core::TextureHandle& texture_handle,
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ tex->set_minfilter(Texture::FT_nearest);
|
|
|
|
|
+ tex->set_magfilter(Texture::FT_nearest);
|
|
|
|
|
+
|
|
|
texture_dimensions.x = tex->get_x_size();
|
|
texture_dimensions.x = tex->get_x_size();
|
|
|
texture_dimensions.y = tex->get_y_size();
|
|
texture_dimensions.y = tex->get_y_size();
|
|
|
tex->ref();
|
|
tex->ref();
|
|
@@ -270,6 +273,8 @@ GenerateTexture(Rocket::Core::TextureHandle& texture_handle,
|
|
|
|
|
|
|
|
tex->set_wrap_u(Texture::WM_clamp);
|
|
tex->set_wrap_u(Texture::WM_clamp);
|
|
|
tex->set_wrap_v(Texture::WM_clamp);
|
|
tex->set_wrap_v(Texture::WM_clamp);
|
|
|
|
|
+ tex->set_minfilter(Texture::FT_nearest);
|
|
|
|
|
+ tex->set_magfilter(Texture::FT_nearest);
|
|
|
|
|
|
|
|
tex->ref();
|
|
tex->ref();
|
|
|
texture_handle = (Rocket::Core::TextureHandle) tex.p();
|
|
texture_handle = (Rocket::Core::TextureHandle) tex.p();
|