mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Fix return type of EGLRenderer::loadAndBuildShader()
This commit is contained in:
1 parent
fb9daf85ab
commit
29a280eb38
2 files changed
+2
-3
No files matched your search
@@ -268,8 +268,7 @@ void EGLRenderer::renderOverlay(Overlay::OverlayType type, int viewportWidth, in
|
||||
glDisable(GL_BLEND);
|
||||
}
|
||||
|
||||
int EGLRenderer::loadAndBuildShader(int shaderType,
|
||||
const char *file) {
|
||||
GLuint EGLRenderer::loadAndBuildShader(int shaderType, const char *file) {
|
||||
GLuint shader = glCreateShader(shaderType);
|
||||
if (!shader) {
|
||||
EGL_LOG(Error, "Can't create shader: %d", glGetError());
|
||||
|
||||
@@ -29,7 +29,7 @@ private:
|
||||
bool compileShaders();
|
||||
bool setupVideoRenderingState();
|
||||
bool setupOverlayRenderingState();
|
||||
static int loadAndBuildShader(int shaderType, const char *filename);
|
||||
static GLuint loadAndBuildShader(int shaderType, const char *filename);
|
||||
|
||||
AVPixelFormat m_EGLImagePixelFormat;
|
||||
void *m_EGLDisplay;
|
||||
|
||||
Reference in new issue
Block a user