Disable the scissor test for the duration of an ore GL render pass

オープン 初心者向け
#143 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
83/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp

調査の方向性

issue では source/renderer/ore/gl/ore_context_gl.cpp とエントリーポイント ContextGL::beginRenderPass が示されています。フレームバッファのバインド周辺にある render pass の設定を読み、pass の完了時に GL state がどのように処理されるか確認してください。pass 中は scissor test が無効になっていることを確認し、ホスト側に残った古い scissor state によって clear や draw がクリップされないようにしてください。

索引モデルが issue の本文から書いたものです。

説明

Disable the scissor test for the duration of an ore GL render pass.

- source/renderer/ore/gl/ore_context_gl.cpp: Ore GL render pass: disable the scissor test for the duration of the pass, since the host renderer may leave a stale scissor rect enabled that would clip the pass's clears and draws

diff --git a/source/renderer/ore/gl/ore_context_gl.cpp b/source/renderer/ore/gl/ore_context_gl.cpp
index 2ec9b3c3bb4620cbfd3453e884d97123129b41b1..719846374383899a0cf1a0147898a6414b8a4b4a 100644
--- a/source/renderer/ore/gl/ore_context_gl.cpp
+++ b/source/renderer/ore/gl/ore_context_gl.cpp
@@ -1112,6 +1112,8 @@ std::unique_ptr<RenderPass> ContextGL::beginRenderPass(
   }
   glBindFramebuffer(GL_FRAMEBUFFER, pass->m_glFBO);
 
+  glDisable(GL_SCISSOR_TEST);
+
   // Hashes what decides completeness. A stale match only skips the report.
   uint64_t attachmentKey = 14695981039346656037ull;
   auto mixKey = [&attachmentKey](uint64_t v) {
主要言語
C++
スター
1.2k
フォーク
133
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rive-app/rive-runtime のほかの issue

rive-app/rive-runtime の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。