Browse Source

Enable screen capture again in OpenGL backends

Michael Ragazzon 1 year ago
parent
commit
69d718bc4a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Samples/shell/CMakeLists.txt

+ 7 - 0
Samples/shell/CMakeLists.txt

@@ -27,3 +27,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
 endif()
 
 target_link_libraries(rmlui_shell PUBLIC rmlui_core rmlui_debugger)
+
+if(RMLUI_BACKEND MATCHES "GL2$")
+	target_compile_definitions(rmlui_shell PRIVATE "RMLUI_RENDERER_GL2")
+endif()
+if(RMLUI_BACKEND MATCHES "GL3$")
+	target_compile_definitions(rmlui_shell PRIVATE "RMLUI_RENDERER_GL3")
+endif()