Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Polyscope OpenGL Error! Type: Invalid enum

未關閉
#143 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
cpp, python

研究方向

使用 OpenGL 3.3 Core Profile 和 Mesa 20.0.8,從回報的 ps.init() 入口點重現此失敗。閱讀回報的 vertex shader 與 GLError 周圍的 shader 編譯路徑;當初始化在此環境中不再引發 Invalid enum 錯誤時,此 issue 即完成。

由索引模型根據 Issue 內容生成。

描述

[polyscope] Backend: openGL3_glfw -- Loaded openGL version: 3.3 (Core Profile) Mesa 20.0.8
[polyscope] Polyscope OpenGL Error! Type: Invalid enum
GLError() after shader compilation! Program text:

// tag ${ GLSL_VERSION }$
// from rule: GLSL_VERSION
#version 330 core

  in vec3 a_position;
  out vec2 tCoord;

  void main()
  {
      tCoord = (a_position.xy+vec2(1.0,1.0))/2.0;
      gl_Position = vec4(a_position,1.);
  }

Traceback (most recent call last):
File "/userhome/37/gdwei/geolearning/IGR/code/reconstruction/playground.py", line 8, in
ps.init()
File "/userhome/37/gdwei/anaconda3/envs/neuralpull/lib/python3.9/site-packages/polyscope/core.py", line 12, in init
psb.init(backend)
RuntimeError: OpenGl error occurred. Text: Invalid enum

主要語言
C++
星號
2.2k
分支
242
平均合併
11 分鐘
30 天內合併 PR
1

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nmwsharp/polyscope 的其他 Issue

查看 nmwsharp/polyscope 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。