Skip to content

Commit

Permalink
Bump impeller-cmake to head.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero committed Nov 1, 2023
1 parent ad78e80 commit a5c33ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions src/main_gles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@ int main() {
return EXIT_FAILURE;
}

auto context = impeller::ContextGLES::Create(
std::move(gl), {std::make_shared<fml::NonOwnedMapping>(
impeller_imgui_shaders_gles_data,
impeller_imgui_shaders_gles_length),
std::make_shared<fml::NonOwnedMapping>(
impeller_example_shaders_gles_data,
impeller_example_shaders_gles_length)});
auto context =
impeller::ContextGLES::Create(std::move(gl),
{std::make_shared<fml::NonOwnedMapping>(
impeller_imgui_shaders_gles_data,
impeller_imgui_shaders_gles_length),
std::make_shared<fml::NonOwnedMapping>(
impeller_example_shaders_gles_data,
impeller_example_shaders_gles_length)},
false);
if (!context) {
std::cerr << "Failed to create Impeller context.";
return EXIT_FAILURE;
Expand Down Expand Up @@ -236,7 +238,8 @@ int main() {
impeller::TextureDescriptor depth_texture_desc;
depth_texture_desc.type = impeller::TextureType::kTexture2D;

depth_texture_desc.format = impeller::PixelFormat::kD32FloatS8UInt; //DefaultColor;
depth_texture_desc.format =
impeller::PixelFormat::kD32FloatS8UInt; // DefaultColor;
depth_texture_desc.size = render_target.GetRenderTargetSize();
depth_texture_desc.usage = static_cast<impeller::TextureUsageMask>(
impeller::TextureUsage::kRenderTarget);
Expand Down

0 comments on commit a5c33ec

Please sign in to comment.